support not in list queries

This commit is contained in:
j 2011-11-02 20:19:42 +01:00
parent 74e9e3ee8c
commit 882ade7735

View file

@ -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