X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/22c4e979b5ad061e448318310fddc4bb8fc56465..4294efcad168429838c93eb3626b60bfe9a6db68:/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):