default contains search

This commit is contained in:
j 2011-01-04 16:07:45 +05:30
parent 40d97b5f6b
commit f3fd78ca2e

View file

@ -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'