Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- a/gpp/forums/admin.py Sat May 01 22:25:49 2010 +0000 +++ b/gpp/forums/admin.py Mon May 03 02:49:31 2010 +0000 @@ -14,14 +14,17 @@ class CategoryAdmin(admin.ModelAdmin): list_display = ('name', 'position', ) + list_editable = ('position', ) prepopulated_fields = { 'slug': ('name', ) } save_on_top = True class ForumAdmin(admin.ModelAdmin): list_display = ('name', 'category', 'position', 'topic_count', 'post_count') + list_editable = ('position', ) prepopulated_fields = { 'slug': ('name', ) } raw_id_fields = ('last_post', ) + ordering = ('category', ) save_on_top = True