diff --git a/pandora/item/managers.py b/pandora/item/managers.py index cd1854414..be409e5f2 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -165,7 +165,10 @@ def parseCondition(condition, user, owner=None): else: q = Q(id__in=l.items.all()) if exclude: - q = ~q + if isinstance(q, list): + q = [~x for x in q] + else: + q = ~q else: q = Q(id=0) return q