From e66615981160da431fd0d4e75a9a57dbcb8c585f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 25 Apr 2015 19:02:20 +0200 Subject: [PATCH] faster find queries --- pandora/item/managers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/managers.py b/pandora/item/managers.py index 50676820b..e6390d95e 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -147,6 +147,8 @@ def parseCondition(condition, user, owner=None): value_key = 'id__in' else: value_key = value_key + get_operator(op) + if 'find__value' in value_key: + value_key = value_key.replace('_icontains', '_contains') k = str(k) value_key = str(value_key) if isinstance(v, unicode):