From 388f4c9d74b8971a47f69daeac13fff224d4e07f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 7 Jan 2014 14:00:20 +0000 Subject: [PATCH] add key=item support to findDocuments --- pandora/document/managers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandora/document/managers.py b/pandora/document/managers.py index e953a060..807b1083 100644 --- a/pandora/document/managers.py +++ b/pandora/document/managers.py @@ -10,6 +10,7 @@ def parseCondition(condition, user): k = condition.get('key', 'name') k = { 'user': 'user__username', + 'item': 'items__itemId', }.get(k, k) if not k: k = 'name'