]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/bpcms/admin.py
Initial port to django-1.7
[sommitrealweird.git] / sommitrealweird / bpcms / admin.py
1 from models import CSSDocument, Document, Folder
2 from django.contrib import admin
3
4 class CSSDocumentAdmin(admin.ModelAdmin):
5     prepopulated_fields = { "slug": ("title",) }
6
7 admin.site.register(CSSDocument, CSSDocumentAdmin)
8
9 class DocumentAdmin(admin.ModelAdmin):
10     prepopulated_fields = { "slug": ("title",) }
11     fields = ( "title", "islive", "extracss", "folder", "format", "slug", "content" )
12
13 admin.site.register(Document, DocumentAdmin)
14
15 class FolderAdmin(admin.ModelAdmin):
16     prepopulated_fields = { "slug": ("title",) }
17
18 admin.site.register(Folder, FolderAdmin)