support tags__id__none for advanced search

This commit is contained in:
Michael Shamoon 2022-12-17 19:49:17 -08:00
parent 204e14877d
commit 94e32005ca

View File

@ -143,6 +143,9 @@ class DelayedQuery:
elif k == "tags__id__all":
for tag_id in v.split(","):
criterias.append(query.Term("tag_id", tag_id))
elif k == "tags__id__none":
for tag_id in v.split(","):
criterias.append(query.Not(query.Term("tag_id", tag_id)))
elif k == "document_type__id":
criterias.append(query.Term("type_id", v))
elif k == "correspondent__isnull":