default contains search
This commit is contained in:
parent
40d97b5f6b
commit
f3fd78ca2e
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,8 @@ def parseCondition(condition):
|
||||||
v = models.Item.objects.filter(facets__key=k, facets__value__istartswith=v)
|
v = models.Item.objects.filter(facets__key=k, facets__value__istartswith=v)
|
||||||
elif op == '$':
|
elif op == '$':
|
||||||
v = models.Item.objects.filter(facets__key=k, facets__value__iendswith=v)
|
v = models.Item.objects.filter(facets__key=k, facets__value__iendswith=v)
|
||||||
|
else:
|
||||||
|
v = models.Item.objects.filter(facets__key=k, facets__value__icontains=v)
|
||||||
k = 'id__in'
|
k = 'id__in'
|
||||||
elif op == '=':
|
elif op == '=':
|
||||||
value_key = 'find__value__iexact'
|
value_key = 'find__value__iexact'
|
||||||
|
|
Loading…
Reference in a new issue