]> git.sommitrealweird.co.uk Git - sommitrealweird.git/blob - sommitrealweird/bpcms/admin.py
Don't track thumbs and photos
[sommitrealweird.git] / sommitrealweird / bpcms / admin.py
1 from models import Document, Folder
2 from django.contrib import admin
3
4 class DocumentAdmin(admin.ModelAdmin):
5     prepopulated_fields = { "slug": ("title",) }
6
7 admin.site.register(Document, DocumentAdmin)
8
9 class FolderAdmin(admin.ModelAdmin):
10     prepopulated_fields = { "slug": ("title",) }
11
12 admin.site.register(Folder, FolderAdmin)