diff gpp/forums/admin.py @ 102:e67c4dd98db5

Forums: new topic form sprouts boolean fields for sticky and locking if the user has rights. Implemented the locked logic. Fixed a bug where topics where getting out of order (the view_count was bumping the update_date because of auto_now).
author Brian Neal <bgneal@gmail.com>
date Wed, 16 Sep 2009 02:01:57 +0000
parents d0d779dd0832
children d97ceb95ce02
line wrap: on
line diff
--- a/gpp/forums/admin.py	Wed Sep 16 00:39:27 2009 +0000
+++ b/gpp/forums/admin.py	Wed Sep 16 02:01:57 2009 +0000
@@ -24,7 +24,7 @@
 
 
 class TopicAdmin(admin.ModelAdmin):
-    list_display = ('name', 'forum', 'creation_date', 'user', 'sticky', 'locked',
+    list_display = ('name', 'forum', 'creation_date', 'update_date', 'user', 'sticky', 'locked',
             'post_count')
     raw_id_fields = ('user', 'last_post', )
     search_fields = ('name', )