forked from 0x2620/pandora
show summary on static page
This commit is contained in:
parent
3f2536dc75
commit
7d10a0a727
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue