From 503321c4d698807529ff198e39eacb2416afb777 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 15 Sep 2013 11:56:49 +0000 Subject: [PATCH] add support for user filter --- pandora/item/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/models.py b/pandora/item/models.py index e4dddca3..66a63f37 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -913,6 +913,8 @@ class Item(models.Model): at = self.get('alternativeTitles') if at: current_values += [a[0] for a in at] + elif key == 'user': + current_values = [self.user.username] elif key == 'character': current_values = filter(lambda x: x.strip(), [f['character'] for f in self.get('cast', [])])