rename summary to headline

This commit is contained in:
bkfox
2017-05-15 16:52:58 +02:00
parent 8cc3caa16b
commit e7700a3896
11 changed files with 27 additions and 27 deletions

View File

@ -175,11 +175,11 @@ class TodayMenu(GenericMenu):
qs = PageRevision.objects.filter(page = item.page.first())
if qs.count():
summary = qs.latest('created_at').content_json
summary = json.loads(summary).get('summary')
attrs['title'] = summary
headline = qs.latest('created_at').content_json
headline = json.loads(headline).get('headline')
attrs['title'] = headline
else:
summary = ''
headline = ''
return MenuItem(label, self.page_url(item), attrs = attrs)