This commit is contained in:
j 2019-12-01 15:28:04 +01:00
parent 0172a152d3
commit ff4e32d769

View file

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