mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 21:16:56 +01:00
Fix: correctly handle "exists, false" in custom field query filter (#8158)
This commit is contained in:
parent
e74f182662
commit
5fed311ffc
2 changed files with 24 additions and 10 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue