diff gpp/forums/admin.py @ 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 7e19180b128d
children 9e42e6618168
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