Mercurial > public > sg101
diff news/admin.py @ 1036:b7b98c729abc
Update news story admin to allow editing comment thread.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 27 Dec 2015 12:00:51 -0600 |
parents | cd4db27c90e3 |
children |
line wrap: on
line diff
--- a/news/admin.py Sat Dec 26 21:33:55 2015 -0600 +++ b/news/admin.py Sun Dec 27 12:00:51 2015 -0600 @@ -103,10 +103,14 @@ search_fields = ['title', 'short_text', 'long_text'] date_hierarchy = 'date_submitted' readonly_fields = ['update_date', 'version'] - raw_id_fields = ['submitter'] + raw_id_fields = ['submitter', 'forums_topic'] actions = ['fix_text'] - fieldsets = PendingStoryAdmin.fieldsets + fieldsets = PendingStoryAdmin.fieldsets + [ + ('Comments', { + 'fields': ['forums_topic'], + }) + ] def fix_text(self, request, qs): for story in qs: