find exact titles
This commit is contained in:
parent
00ad8652ea
commit
2b43fbd35a
2 changed files with 4 additions and 2 deletions
|
|
@ -61,7 +61,7 @@ def parseCondition(condition):
|
|||
if key_type == "string":
|
||||
in_find=True
|
||||
value_key = 'find__value'
|
||||
if k in models.Item.facet_keys:
|
||||
if k in models.Item.facet_keys + ['title']:
|
||||
in_find = False
|
||||
if op == '=' or op == '^$':
|
||||
v = models.Item.objects.filter(facets__key=k, facets__value=v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue