mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-16 00:36:22 +00:00
Fix: correctly handle "exists, false" in custom field query filter (#8158)
This commit is contained in:
@@ -289,6 +289,12 @@ class TestCustomFieldsSearch(DirectoriesMixin, APITestCase):
|
||||
lambda document: "string_field" in document,
|
||||
)
|
||||
|
||||
def test_exists_false(self):
|
||||
self._assert_query_match_predicate(
|
||||
["string_field", "exists", False],
|
||||
lambda document: "string_field" not in document,
|
||||
)
|
||||
|
||||
def test_select(self):
|
||||
# For select fields, you can either specify the index
|
||||
# or the name of the option. They function exactly the same.
|
||||
|
Reference in New Issue
Block a user