X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/8b73562314685b0588d2ee1c5a61436d8d1e4e20..f423a5130b54cd17f1f8990e7ab242496d3e3657:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index 5fc9dcc..c34199b 100644 --- a/contrib/penfield/admin.py +++ b/contrib/penfield/admin.py @@ -1,6 +1,11 @@ -from models import Entry, Blog +from models import BlogEntry, Blog from django.contrib import admin from philo.admin import EntityAdmin -admin.site.register(Entry, EntityAdmin) +class TitledContentAdmin(EntityAdmin): + prepopulated_fields = {'slug': ('title',)} + list_display = ('title', 'slug') + + +admin.site.register(BlogEntry, TitledContentAdmin) admin.site.register(Blog) \ No newline at end of file