multiple characters
This commit is contained in:
parent
c0bb1da718
commit
fc81d9de47
1 changed files with 2 additions and 0 deletions
|
@ -686,6 +686,8 @@ class Item(models.Model):
|
|||
elif key == 'character':
|
||||
current_values = filter(lambda x: x.strip(),
|
||||
[f['character'] for f in self.get('cast', [])])
|
||||
current_values = [item for sublist in [x.split(' / ') for x in current_values]
|
||||
for item in sublist]
|
||||
elif key == 'name':
|
||||
current_values = []
|
||||
#FIXME: is there a better way to build name collection?
|
||||
|
|
Loading…
Reference in a new issue