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