X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/72467c597b52d5ceb2eb51fce4792dea643edd6a..be40499f02a3457bb17a8dc02a78224823eb1406:/contrib/penfield/admin.py 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):