fix findMedia by item id

This commit is contained in:
j 2016-07-24 17:52:33 +02:00
parent 000d2c560c
commit 383ad8a535

View file

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