From 31afb65c74ccaa5d444e1f3aeb5336845e77de89 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 26 Nov 2010 18:11:26 +0100 Subject: [PATCH] new key/value find --- pandora/item/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/models.py b/pandora/item/models.py index 277dbda..4b46ca2 100644 --- a/pandora/item/models.py +++ b/pandora/item/models.py @@ -148,7 +148,7 @@ def getItem(info): item.updateImdb() tasks.updatePoster.delay(item.itemId) else: - q = Item.objects.filter(find__title=info['title']) + q = Item.objects.filter(find__key='title', find__value=info['title']) if q.count() > 1: print "FIXME: check more than title here!!?" item = q[0]