fix findMedia by item id
This commit is contained in:
parent
000d2c560c
commit
383ad8a535
1 changed files with 4 additions and 2 deletions
|
@ -15,6 +15,7 @@ import utils
|
||||||
from oxdjango.query import QuerySet
|
from oxdjango.query import QuerySet
|
||||||
from oxdjango.managers import get_operator
|
from oxdjango.managers import get_operator
|
||||||
|
|
||||||
|
|
||||||
def parseCondition(condition, user, owner=None):
|
def parseCondition(condition, user, owner=None):
|
||||||
'''
|
'''
|
||||||
condition: {
|
condition: {
|
||||||
|
@ -117,8 +118,9 @@ def parseCondition(condition, user, owner=None):
|
||||||
value_key = 'find__value'
|
value_key = 'find__value'
|
||||||
else:
|
else:
|
||||||
value_key = k
|
value_key = k
|
||||||
if isinstance(v, unicode):
|
if not k.startswith('public_id'):
|
||||||
v = unicodedata.normalize('NFKD', v).lower()
|
if isinstance(v, unicode):
|
||||||
|
v = unicodedata.normalize('NFKD', v).lower()
|
||||||
if k in facet_keys:
|
if k in facet_keys:
|
||||||
in_find = False
|
in_find = False
|
||||||
facet_value = 'facets__value' + get_operator(op, 'istr')
|
facet_value = 'facets__value' + get_operator(op, 'istr')
|
||||||
|
|
Loading…
Reference in a new issue