]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blobdiff - sommitrealweird/bpcms/admin.py
Lots of changes to fix lots of bugs and add comments to blog
[sommitrealweird.git] / sommitrealweird / bpcms / admin.py
index 2c4c86d24db75087443f93cc8ffa0f80568b3370..cb6d3960be874278fd7524ceb4735b50b7b587e7 100644 (file)
@@ -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)