Mercurial > public > sg101
changeset 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 | c8c0fa817a05 |
children | 54cbdef18cf4 |
files | gpp/news/admin.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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']