X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0687ae812884b047c1f9ce56610e47b802cb2488..d19e216035b14d8f60b24dda0c0670e6997f16ce:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py deleted file mode 100644 index 0e15287..0000000 --- a/contrib/penfield/admin.py +++ /dev/null @@ -1,25 +0,0 @@ -from models import BlogEntry, Blog, BlogNode -from django.contrib import admin -from philo.admin import EntityAdmin - - -class TitledAdmin(EntityAdmin): - prepopulated_fields = {'slug': ('title',)} - list_display = ('title', 'slug') - - -class BlogAdmin(TitledAdmin): - pass - - -class BlogEntryAdmin(TitledAdmin): - pass - - -class BlogNodeAdmin(EntityAdmin): - pass - - -admin.site.register(Blog, BlogAdmin) -admin.site.register(BlogEntry, BlogEntryAdmin) -admin.site.register(BlogNode, BlogNodeAdmin) \ No newline at end of file