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