summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 84e2b3542..5e08ce6ae 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -400,6 +400,7 @@ class ContextRecord(BulkUpdatedItem, DocumentItem, BaseHistorizedItem,
'operation_id': 'operation_id',
'unit__label': "unit__label"
}
+ MANY_COUNTED_FIELDS = ['base_finds']
REVERSED_BOOL_FIELDS = [
'documents__image__isnull',
'documents__associated_file__isnull',
@@ -453,6 +454,10 @@ class ContextRecord(BulkUpdatedItem, DocumentItem, BaseHistorizedItem,
pgettext_lazy("key for text search", "parcel"),
'parcel__cached_label__iexact'
),
+ 'has_finds': SearchAltName(
+ pgettext_lazy("key for text search", "has-finds"),
+ 'base_finds'
+ ),
'cr_relation_types': SearchAltName(
pgettext_lazy("key for text search", "record-relation-type"),
'cr_relation_types'