X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/6dc154ec98d58159b3e75447ce7b7fe5642acec4..949db689dc364fbff5384cd24dc8c1a9892369ab:/philo/contrib/penfield/admin.py?ds=inline diff --git a/philo/contrib/penfield/admin.py b/philo/contrib/penfield/admin.py index d350303..0800be1 100644 --- a/philo/contrib/penfield/admin.py +++ b/philo/contrib/penfield/admin.py @@ -3,7 +3,7 @@ from django.contrib import admin from django.core.urlresolvers import reverse from django.http import HttpResponseRedirect, QueryDict -from philo.admin import EntityAdmin, AddTagAdmin, COLLAPSE_CLASSES +from philo.admin import EntityAdmin, COLLAPSE_CLASSES from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView @@ -20,9 +20,8 @@ class BlogAdmin(EntityAdmin): list_display = ('title', 'slug') -class BlogEntryAdmin(AddTagAdmin): +class BlogEntryAdmin(EntityAdmin): form = DelayedDateForm - filter_horizontal = ['tags'] list_filter = ['author', 'blog'] date_hierarchy = 'date' search_fields = ('content',) @@ -73,9 +72,9 @@ class NewsletterAdmin(EntityAdmin): list_display = ('title', 'slug') -class NewsletterArticleAdmin(AddTagAdmin): +class NewsletterArticleAdmin(EntityAdmin): form = DelayedDateForm - filter_horizontal = ('tags', 'authors') + filter_horizontal = ('authors',) list_filter = ('newsletter',) date_hierarchy = 'date' search_fields = ('title', 'authors__name',)