This commit is contained in:
j 2014-11-17 16:56:53 +00:00
parent 25d794e803
commit 1ac959623e

View file

@ -132,7 +132,7 @@ def parseCondition(condition, user, owner=None):
elif key_type == 'boolean':
q = Q(**{'find__key': k, 'find__value': v})
if exclude:
q = ~q
q = ~Q(id__in=models.Item.objects.filter(q))
return q
elif key_type == "string":
in_find = not k.startswith('public_id')
@ -158,7 +158,7 @@ def parseCondition(condition, user, owner=None):
else:
q = Q(**{value_key: v})
if exclude:
q = ~q
q = ~Q(id__in=models.Item.objects.filter(q))
return q
elif k == 'list':
q = Q(id=0)