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
pass
-class BlogEntryAdmin(TitledAdmin):
- pass
+class BlogEntryAdmin(TitledAdmin, AddTagAdmin):
+ filter_horizontal = ['tags']
class BlogViewAdmin(EntityAdmin):
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):