check if cast is in data
This commit is contained in:
parent
27de6237ae
commit
dadc1d5148
1 changed files with 5 additions and 4 deletions
|
@ -147,6 +147,7 @@ class Item(models.Model):
|
||||||
data['releasedate'] = min(data['releasedate'])
|
data['releasedate'] = min(data['releasedate'])
|
||||||
if 'plot' in data:
|
if 'plot' in data:
|
||||||
data['summary'] = data.pop('plot')
|
data['summary'] = data.pop('plot')
|
||||||
|
if 'cast' in data:
|
||||||
if isinstance(data['cast'][0], basestring):
|
if isinstance(data['cast'][0], basestring):
|
||||||
data['actor'] = [data['cast'][0]]
|
data['actor'] = [data['cast'][0]]
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue