diff --git a/pandora/item/managers.py b/pandora/item/managers.py index cd185441..be409e5f 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