comparison gpp/forums/admin.py @ 181:500e5875a306

Implementing #61: adding a forum topic subscription feature.
author Brian Neal <bgneal@gmail.com>
date Sun, 28 Mar 2010 01:07:47 +0000
parents d97ceb95ce02
children b4305e18d3af
comparison
equal deleted inserted replaced
180:aef00df91165 181:500e5875a306
25 25
26 26
27 class TopicAdmin(admin.ModelAdmin): 27 class TopicAdmin(admin.ModelAdmin):
28 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked', 28 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked',
29 'post_count') 29 'post_count')
30 raw_id_fields = ('user', 'last_post', ) 30 raw_id_fields = ('user', 'last_post', 'subscribers')
31 search_fields = ('name', ) 31 search_fields = ('name', )
32 date_hierarchy = 'creation_date' 32 date_hierarchy = 'creation_date'
33 list_filter = ('creation_date', 'update_date', ) 33 list_filter = ('creation_date', 'update_date', )
34 save_on_top = True 34 save_on_top = True
35 35