# HG changeset patch # User Brian Neal # Date 1451239251 21600 # Node ID b7b98c729abcf86fda42371b52a2805e414389e6 # Parent eeaf387803c6a0905805fbe9681305e1ee6f1e86 Update news story admin to allow editing comment thread. diff -r eeaf387803c6 -r b7b98c729abc news/admin.py --- 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: