From 882ade773570fe828f44f7023212cc7ac9ef259a Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 2 Nov 2011 20:19:42 +0100 Subject: [PATCH] support not in list queries --- pandora/item/managers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/item/managers.py b/pandora/item/managers.py index 67f9251a..0fdafa67 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -126,6 +126,8 @@ def parseCondition(condition, user): user) else: q = Q(id__in=l.items.all()) + if exclude: + q = ~q else: q = Q(id=0) return q