From e4df561285b6fbda6b57477b7fa59ca9168e83e7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 30 Aug 2022 17:49:23 +0200 Subject: Fix many count search such has "has-finds" (refs #5425) --- archaeological_context_records/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'archaeological_context_records/models.py') diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py index e279c55fa..f0a277678 100644 --- a/archaeological_context_records/models.py +++ b/archaeological_context_records/models.py @@ -555,7 +555,7 @@ class ContextRecord( "operation_id": "operation_id", "unit__label": "unit__label", } - MANY_COUNTED_FIELDS = ["base_finds"] + MANY_COUNTED_FIELDS = ["base_finds__isnull"] REVERSED_BOOL_FIELDS = [ "documents__image__isnull", "documents__associated_file__isnull", @@ -612,7 +612,7 @@ class ContextRecord( "parcel__cached_label__iexact", ), "has_finds": SearchAltName( - pgettext_lazy("key for text search", "has-finds"), "base_finds" + pgettext_lazy("key for text search", "has-finds"), "base_finds__isnull" ), "cr_relation_types": SearchAltName( pgettext_lazy("key for text search", "record-relation-type"), -- cgit v1.2.3