forked from 0x2620/pandora
not in collection
This commit is contained in:
parent
7ba58d0b63
commit
71a0a82aee
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue