Package madrona :: Package news :: Module admin
[hide private]

Source Code for Module madrona.news.admin

 1  from django.contrib.gis import admin 
 2  from models import Entry, Tag 
 3   
4 -class TagAdmin(admin.ModelAdmin):
5 pass
6
7 -class EntriesAdmin(admin.ModelAdmin):
8 date_hierarchy = 'published_on' 9 list_display = ('title', 'author', 'is_draft', 'published_on') 10 search_fields = ['title', 'summary', 'body']
11 12 admin.site.register(Entry, EntriesAdmin) 13 admin.site.register(Tag, TagAdmin) 14