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,6 +165,9 @@ def parseCondition(condition, user, owner=None):
|
|||
else:
|
||||
q = Q(id__in=l.items.all())
|
||||
if exclude:
|
||||
if isinstance(q, list):
|
||||
q = [~x for x in q]
|
||||
else:
|
||||
q = ~q
|
||||
else:
|
||||
q = Q(id=0)
|
||||
|
|
Loading…
Reference in a new issue