comparison gpp/forums/admin.py @ 232:a46788862737

Implement a forum favorites feature for #82
author Brian Neal <bgneal@gmail.com>
date Sun, 01 Aug 2010 21:26:12 +0000
parents 272d3a8c98e8
children 7e19180b128d
comparison
equal deleted inserted replaced
231:a2d388ed106e 232:a46788862737
29 29
30 30
31 class TopicAdmin(admin.ModelAdmin): 31 class TopicAdmin(admin.ModelAdmin):
32 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked', 32 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked',
33 'post_count') 33 'post_count')
34 raw_id_fields = ('user', 'last_post', 'subscribers') 34 raw_id_fields = ('user', 'last_post', 'subscribers', 'bookmarkers')
35 search_fields = ('name', ) 35 search_fields = ('name', )
36 date_hierarchy = 'creation_date' 36 date_hierarchy = 'creation_date'
37 list_filter = ('creation_date', 'update_date', ) 37 list_filter = ('creation_date', 'update_date', )
38 save_on_top = True 38 save_on_top = True
39 39