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.managers import get_operator
|
||||
|
||||
|
||||
def parseCondition(condition, user, owner=None):
|
||||
'''
|
||||
condition: {
|
||||
|
@ -117,6 +118,7 @@ def parseCondition(condition, user, owner=None):
|
|||
value_key = 'find__value'
|
||||
else:
|
||||
value_key = k
|
||||
if not k.startswith('public_id'):
|
||||
if isinstance(v, unicode):
|
||||
v = unicodedata.normalize('NFKD', v).lower()
|
||||
if k in facet_keys:
|
||||
|
|
Loading…
Reference in a new issue