comparison gpp/forums/admin.py @ 206:272d3a8c98e8

Some minor tweaks made while rebuilding the development database after Ubuntu 10.04 install.
author Brian Neal <bgneal@gmail.com>
date Mon, 03 May 2010 02:49:31 +0000
parents b4305e18d3af
children a46788862737
comparison
equal deleted inserted replaced
205:da46e77cd804 206:272d3a8c98e8
12 import bio.badges 12 import bio.badges
13 13
14 14
15 class CategoryAdmin(admin.ModelAdmin): 15 class CategoryAdmin(admin.ModelAdmin):
16 list_display = ('name', 'position', ) 16 list_display = ('name', 'position', )
17 list_editable = ('position', )
17 prepopulated_fields = { 'slug': ('name', ) } 18 prepopulated_fields = { 'slug': ('name', ) }
18 save_on_top = True 19 save_on_top = True
19 20
20 21
21 class ForumAdmin(admin.ModelAdmin): 22 class ForumAdmin(admin.ModelAdmin):
22 list_display = ('name', 'category', 'position', 'topic_count', 'post_count') 23 list_display = ('name', 'category', 'position', 'topic_count', 'post_count')
24 list_editable = ('position', )
23 prepopulated_fields = { 'slug': ('name', ) } 25 prepopulated_fields = { 'slug': ('name', ) }
24 raw_id_fields = ('last_post', ) 26 raw_id_fields = ('last_post', )
27 ordering = ('category', )
25 save_on_top = True 28 save_on_top = True
26 29
27 30
28 class TopicAdmin(admin.ModelAdmin): 31 class TopicAdmin(admin.ModelAdmin):
29 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked', 32 list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked',