fix other find queries

This commit is contained in:
j 2011-10-25 10:31:58 +02:00
parent e7255e6af6
commit af340843d8

View file

@ -78,7 +78,7 @@ def parseCondition(condition, user):
'$': '__iendswith',
}.get(op, '__icontains')
v = models.Item.objects.filter(**{'facets__key':k, facet_value:v})
k = 'id__in'
value_key = 'id__in'
else:
value_key = '%s%s' % (value_key, {
'==': '__iexact',
@ -91,6 +91,7 @@ def parseCondition(condition, user):
}.get(op, '__icontains'))
k = str(k)
value_key = str(value_key)
if exclude:
if k == '*':
q = ~Q(**{value_key: v})