# HG changeset patch # User Brian Neal # Date 1299298663 0 # Node ID cdfa3ed59600c9bf1f8cdbeb3533b49ef79d5798 # Parent 3cf18e6002ddaebd25448fd9e7a560fcf3114155 Fixing #181; flagged comments need raw_id_fields for the user and comment foreign keys. diff -r 3cf18e6002dd -r cdfa3ed59600 gpp/comments/admin.py --- 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