default contains search
This commit is contained in:
parent
ecad927124
commit
869977a145
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)
|
||||
elif op == '$':
|
||||
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'
|
||||
elif op == '=':
|
||||
value_key = 'find__value__iexact'
|
||||
|
|
Loading…
Reference in a new issue