1 from .models import Blog, BlogEntry, BlogView, NewsletterArticle, NewsletterIssue, Newsletter, NewsletterView
2 from philo.contrib.gilbert import site
3 from philo.contrib.gilbert.plugins.models import ModelAdmin
6 class BlogAdmin(ModelAdmin):
7 search_fields = ('title',)
10 class BlogEntryAdmin(ModelAdmin):
11 search_fields = ('title', 'content',)
12 data_columns = ('title', 'author', 'blog', 'date',)
15 site.register_model(Blog, BlogAdmin, icon_name='blog')
16 site.register_model(BlogEntry, BlogEntryAdmin, icon_name='document-snippet')
17 site.register_model(BlogView, icon_name='application-blog')
18 site.register_model(NewsletterArticle, icon_name='document-snippet')
19 site.register_model(NewsletterIssue, icon_name='newspaper')
20 site.register_model(Newsletter, icon_name='newspapers')
21 site.register_model(NewsletterView, icon_name='application')