]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/admin.py
Changes for django 2.2
[sommitrealweird.git] / sommitrealweird / bpcms / admin.py
index 2c4c86d24db75087443f93cc8ffa0f80568b3370..972ca068b3729811ff7a6d427cfe5fab614f5e6f 100644 (file)
@@ -1,8 +1,14 @@
-from models import Document, Folder
+from bpcms.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)