Adjusted to match the new master TemplateField changes. Switched the setting of _embe...
[philo.git] / contrib / penfield / admin.py
index ba885fd..4be78c0 100644 (file)
@@ -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)