forked from 0x2620/pandora
find clip queries too
This commit is contained in:
parent
73cbde63cf
commit
066d7c8588
1 changed files with 4 additions and 1 deletions
|
@ -159,7 +159,10 @@ class ClipManager(Manager):
|
|||
'^': '__istartswith',
|
||||
'$': '__iendswith',
|
||||
}.get(condition.get('opterator', ''), '__icontains'))
|
||||
q = Q(**{key: condition['value']})
|
||||
v = condition['value']
|
||||
if isinstance(v, unicode):
|
||||
v = unicodedata.normalize('NFKD', v).lower()
|
||||
q = Q(**{key: v})
|
||||
if condition['key'] in settings.CONFIG['clipLayers']:
|
||||
q = q & Q(layer=condition['key'])
|
||||
return q
|
||||
|
|
Loading…
Reference in a new issue