From fc81d9de47fd79045a44b552d7f8ffc83926d8da Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 20 Oct 2011 11:39:21 +0200 Subject: [PATCH] multiple characters --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index 2cdcbe16..812b79a5 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -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?