#1876 actor->cast, fix background for non js page

This commit is contained in:
j 2014-01-16 10:02:08 +00:00
commit 3fb59e6a99
2 changed files with 7 additions and 3 deletions

View file

@ -1247,7 +1247,10 @@ def item(request, id):
value = item.get(k)
key = utils.get_by_id(settings.CONFIG['itemKeys'], k)
if value:
title = key['title'] if key else k.capitalize()
if k == 'actor':
title = 'Cast'
else:
title = key['title'] if key else k.capitalize()
if isinstance(value, list):
value = value = u', '.join([unicode(v) for v in value])
elif key and key.get('type') == 'float':