not in collection

This commit is contained in:
j 2020-05-15 19:25:07 +02:00
parent 7ba58d0b63
commit 71a0a82aee

View file

@ -132,6 +132,8 @@ def buildCondition(k, op, v, user, exclude=False, owner=None):
q = Q(id__in=l.documents.all())
else:
q = Q(id=0)
if exclude:
q = ~q
return q
elif key_config.get('fulltext'):
qs = models.Document.find_fulltext_ids(v)