from django.contrib import admin
from main_app.models import *
from django.contrib.admin.templatetags.admin_modify import prepopulated_fields_js

# Register your models here.
class ContentInlines(admin.StackedInline):
    model = Content
    extra = 0

class CategoryAdmin(admin.ModelAdmin):
    inlines =[ContentInlines]
    class Media:
       js= ('//tinymce.cachefly.net/4.1/tinymce.min.js','www/js/tiny_mce_textareas.js')
    
admin.site.register(Category, CategoryAdmin)
