X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/72467c597b52d5ceb2eb51fce4792dea643edd6a..a752922a230a38c3273d8e9b354bc18d041cc24f:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index ba885fd..4be78c0 100644 --- a/contrib/penfield/admin.py +++ b/contrib/penfield/admin.py @@ -1,6 +1,6 @@ from django.contrib import admin from philo.admin import EntityAdmin -from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView +from philo.contrib.penfield.models import BlogEntry, Blog, BlogView, Newsletter, NewsletterArticle, NewsletterIssue, NewsletterView, Embed class TitledAdmin(EntityAdmin): @@ -13,7 +13,7 @@ class BlogAdmin(TitledAdmin): class BlogEntryAdmin(TitledAdmin): - pass + filter_horizontal = ['tags'] class BlogViewAdmin(EntityAdmin): @@ -29,13 +29,18 @@ class NewsletterArticleAdmin(TitledAdmin): class NewsletterIssueAdmin(TitledAdmin): - pass + filter_horizontal = TitledAdmin.filter_horizontal + ('articles',) class NewsletterViewAdmin(EntityAdmin): pass +class EmbedAdmin(admin.ModelAdmin): + pass + + +admin.site.register(Embed, EmbedAdmin) admin.site.register(Blog, BlogAdmin) admin.site.register(BlogEntry, BlogEntryAdmin) admin.site.register(BlogView, BlogViewAdmin)