show summary on static page

This commit is contained in:
j 2012-02-16 19:35:09 +05:30
parent 3f2536dc75
commit 7d10a0a727

View file

@ -1064,7 +1064,7 @@ def item(request, id):
'year', 'year',
'director', 'director',
'topic', 'topic',
'description' 'summary'
] ]
data = [] data = []
for key in keys: for key in keys:
@ -1096,7 +1096,7 @@ def item(request, id):
} }
for key in ('title', 'description', 'keywords'): for key in ('title', 'description', 'keywords'):
value = item.get({ value = item.get({
'description': 'summary' in keys and 'summary' or 'description', 'description': 'summary',
'keywords': 'topic' in keys and 'topic' or 'keywords' 'keywords': 'topic' in keys and 'topic' or 'keywords'
}.get(key, key)) }.get(key, key))
if isinstance(value, list): if isinstance(value, list):