faster find queries
This commit is contained in:
parent
9197591bb6
commit
e666159811
1 changed files with 2 additions and 0 deletions
|
@ -147,6 +147,8 @@ def parseCondition(condition, user, owner=None):
|
||||||
value_key = 'id__in'
|
value_key = 'id__in'
|
||||||
else:
|
else:
|
||||||
value_key = value_key + get_operator(op)
|
value_key = value_key + get_operator(op)
|
||||||
|
if 'find__value' in value_key:
|
||||||
|
value_key = value_key.replace('_icontains', '_contains')
|
||||||
k = str(k)
|
k = str(k)
|
||||||
value_key = str(value_key)
|
value_key = str(value_key)
|
||||||
if isinstance(v, unicode):
|
if isinstance(v, unicode):
|
||||||
|
|
Loading…
Reference in a new issue