fix not in smart list queries
This commit is contained in:
parent
30ceb79f46
commit
4d2dff3afc
1 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,10 @@ def parseCondition(condition, user, owner=None):
|
||||||
else:
|
else:
|
||||||
q = Q(id__in=l.items.all())
|
q = Q(id__in=l.items.all())
|
||||||
if exclude:
|
if exclude:
|
||||||
q = ~q
|
if isinstance(q, list):
|
||||||
|
q = [~x for x in q]
|
||||||
|
else:
|
||||||
|
q = ~q
|
||||||
else:
|
else:
|
||||||
q = Q(id=0)
|
q = Q(id=0)
|
||||||
return q
|
return q
|
||||||
|
|
Loading…
Reference in a new issue