X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/2d5a803e2b8bd6ed72de946d4cfbb7b880493bf6..525b287d2a1c652749f6e175568695907ac3a65b:/sommitrealweird/bpcms/admin.py?ds=sidebyside diff --git a/sommitrealweird/bpcms/admin.py b/sommitrealweird/bpcms/admin.py index 2c4c86d..cb6d396 100644 --- a/sommitrealweird/bpcms/admin.py +++ b/sommitrealweird/bpcms/admin.py @@ -1,8 +1,14 @@ -from models import Document, Folder +from models import CSSDocument, Document, Folder from django.contrib import admin +class CSSDocumentAdmin(admin.ModelAdmin): + prepopulated_fields = { "slug": ("title",) } + +admin.site.register(CSSDocument, CSSDocumentAdmin) + class DocumentAdmin(admin.ModelAdmin): prepopulated_fields = { "slug": ("title",) } + fields = ( "title", "islive", "extracss", "folder", "format", "slug", "content" ) admin.site.register(Document, DocumentAdmin)