multiple characters

This commit is contained in:
j 2011-10-20 11:39:21 +02:00
parent c0bb1da718
commit fc81d9de47

View file

@ -686,6 +686,8 @@ class Item(models.Model):
elif key == 'character': elif key == 'character':
current_values = filter(lambda x: x.strip(), current_values = filter(lambda x: x.strip(),
[f['character'] for f in self.get('cast', [])]) [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': elif key == 'name':
current_values = [] current_values = []
#FIXME: is there a better way to build name collection? #FIXME: is there a better way to build name collection?