changeset 465:79d454ff2de0

Add raw_id_fields to the FlaggedPostAdmin.
author Brian Neal <bgneal@gmail.com>
date Sat, 09 Jul 2011 02:28:33 +0000
parents bba1782992eb
children c78c6e007e61
files gpp/forums/admin.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gpp/forums/admin.py	Sat Jul 09 02:12:32 2011 +0000
+++ b/gpp/forums/admin.py	Sat Jul 09 02:28:33 2011 +0000
@@ -51,8 +51,9 @@
 
 
 class FlaggedPostAdmin(admin.ModelAdmin):
-    list_display = ('__unicode__', 'flag_date', 'get_post_url')
-    actions = ('accept_flags', )
+    list_display = ['__unicode__', 'flag_date', 'get_post_url']
+    actions = ['accept_flags']
+    raw_id_fields = ['post', 'user', ]
 
     def accept_flags(self, request, qs):
         """This admin action awards a security pin to the user who reported