diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-08-30 17:49:23 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:18 +0100 |
commit | e4df561285b6fbda6b57477b7fa59ca9168e83e7 (patch) | |
tree | e5b754cef2aa2b00739f68dd6ef1bba8f37bef8a /archaeological_operations/models.py | |
parent | 44596cec7f75552a823143ce1a416097cc8ee28c (diff) | |
download | Ishtar-e4df561285b6fbda6b57477b7fa59ca9168e83e7.tar.bz2 Ishtar-e4df561285b6fbda6b57477b7fa59ca9168e83e7.zip |
Fix many count search such has "has-finds" (refs #5425)
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index ae52e5cbe..bb41848a5 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -923,7 +923,7 @@ class Operation( "documentation_received", "finds_received", ] - MANY_COUNTED_FIELDS = ["context_record__base_finds"] + MANY_COUNTED_FIELDS = ["context_record__base_finds__isnull"] REVERSED_BOOL_FIELDS = [ "documents__image__isnull", "documents__associated_file__isnull", @@ -1154,7 +1154,7 @@ class Operation( ), "has_finds": SearchAltName( pgettext_lazy("key for text search", "has-finds"), - "context_record__base_finds", + "context_record__base_finds__isnull", ), "finds_deadline_before": SearchAltName( pgettext_lazy("key for text search", "finds-deadline-before"), |