Mercurial > public > sg101
diff gpp/news/admin.py @ 372:7c7201f942fe
Added raw_id_fields for submitter on news stories and pending stories.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Mar 2011 20:51:15 +0000 |
parents | d424b8bae71d |
children | 701730b2fcda |
line wrap: on
line diff
--- a/gpp/news/admin.py Sun Mar 06 20:23:09 2011 +0000 +++ b/gpp/news/admin.py Sun Mar 06 20:51:15 2011 +0000 @@ -23,6 +23,7 @@ date_hierarchy = 'date_submitted' actions = ('approve_story', ) readonly_fields = ('update_date', ) + raw_id_fields = ('submitter', ) def approve_story(self, request, qs): for pending_story in qs: @@ -51,6 +52,7 @@ search_fields = ('title', 'short_text', 'long_text') date_hierarchy = 'date_submitted' readonly_fields = ('update_date', ) + raw_id_fields = ('submitter', ) class Media: js = settings.GPP_THIRD_PARTY_JS['tiny_mce']