X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3b1d871f1c800bac4d1a9ce85ee2eb5c5c19a4f0..4c2f395f73a970c302682ad76913b6bb38f70568:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index 56edd45..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,8 +12,8 @@ class BlogAdmin(TitledAdmin): pass -class BlogEntryAdmin(TitledAdmin): - pass +class BlogEntryAdmin(TitledAdmin, AddTagAdmin): + filter_horizontal = ['tags'] class BlogViewAdmin(EntityAdmin): @@ -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):