Mercurial > public > sg101
changeset 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 | 3cf18e6002dd |
children | 5219c7cc5a53 |
files | gpp/comments/admin.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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