diff gpp/comments/admin.py @ 365:cdfa3ed59600

Fixing #181; flagged comments need raw_id_fields for the user and comment foreign keys.
author Brian Neal <bgneal@gmail.com>
date Sat, 05 Mar 2011 04:17:43 +0000
parents b4305e18d3af
children
line wrap: on
line diff
--- a/gpp/comments/admin.py	Sat Mar 05 04:11:22 2011 +0000
+++ b/gpp/comments/admin.py	Sat Mar 05 04:17:43 2011 +0000
@@ -31,6 +31,7 @@
 class CommentFlagAdmin(admin.ModelAdmin):
     list_display = ('__unicode__', 'flag_date', 'get_comment_url')
     actions = ('accept_flags', )
+    raw_id_fields = ('user', 'comment')
 
     def accept_flags(self, request, qs):
         """This admin action awards a security pin to the user who reported