forked from 0x2620/pandora
fix other find queries
This commit is contained in:
parent
e7255e6af6
commit
af340843d8
1 changed files with 2 additions and 1 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue