X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/2a129b5646d5184ee537801286b351761131f486..4294efcad168429838c93eb3626b60bfe9a6db68:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index ba885fd..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,12 +24,12 @@ class NewsletterAdmin(TitledAdmin): pass -class NewsletterArticleAdmin(TitledAdmin): - pass +class NewsletterArticleAdmin(TitledAdmin, AddTagAdmin): + filter_horizontal = TitledAdmin.filter_horizontal + ('tags', 'authors') class NewsletterIssueAdmin(TitledAdmin): - pass + filter_horizontal = TitledAdmin.filter_horizontal + ('articles',) class NewsletterViewAdmin(EntityAdmin):