X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/11f1c387f944adf710f7fa4614004f0ef9fda29b..a752922a230a38c3273d8e9b354bc18d041cc24f:/contrib/penfield/admin.py?ds=sidebyside diff --git a/contrib/penfield/admin.py b/contrib/penfield/admin.py index 56edd45..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): @@ -36,6 +36,11 @@ 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)