X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/0763589c29458e7c4e7b7bfb5424b724a112931d..be40499f02a3457bb17a8dc02a78224823eb1406:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index 85888aa..5faf4ef 100644 --- a/contrib/penfield/admin.py +++ b/contrib/penfield/admin.py @@ -1,5 +1,5 @@ from django.contrib import admin -from philo.admin import EntityAdmin +from philo.admin import EntityAdmin, AddTagAdmin from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView @@ -12,7 +12,7 @@ class BlogAdmin(TitledAdmin): pass -class BlogEntryAdmin(TitledAdmin): +class BlogEntryAdmin(TitledAdmin, AddTagAdmin): filter_horizontal = ['tags'] @@ -24,8 +24,8 @@ class NewsletterAdmin(TitledAdmin): pass -class NewsletterArticleAdmin(TitledAdmin): - pass +class NewsletterArticleAdmin(TitledAdmin, AddTagAdmin): + filter_horizontal = TitledAdmin.filter_horizontal + ('tags', 'authors') class NewsletterIssueAdmin(TitledAdmin):