1 from bpcms.models import CSSDocument, Document, Folder
2 from django.contrib import admin
4 class CSSDocumentAdmin(admin.ModelAdmin):
5 prepopulated_fields = { "slug": ("title",) }
7 admin.site.register(CSSDocument, CSSDocumentAdmin)
9 class DocumentAdmin(admin.ModelAdmin):
10 prepopulated_fields = { "slug": ("title",) }
11 fields = ( "title", "islive", "extracss", "folder", "format", "slug", "content" )
13 admin.site.register(Document, DocumentAdmin)
15 class FolderAdmin(admin.ModelAdmin):
16 prepopulated_fields = { "slug": ("title",) }
18 admin.site.register(Folder, FolderAdmin)