summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 1e848a361..5c6f0f27f 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -926,7 +926,9 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
}
DATED_FIELDS = [
- 'last_modified__gte', 'treatments__file__end_date__lte',
+ 'last_modified__gte',
+ 'treatments__file__end_date__lte',
+ 'treatments__end_date__lte',
'base_finds__discovery_date__lte',
'base_finds__discovery_date__gte',
'base_finds__discovery_date_tpq__lte',
@@ -1127,8 +1129,13 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
'treatments_file_end_date':
SearchAltName(
pgettext_lazy("key for text search",
- "treatment-end-date-before"),
+ "treatment-file-end-date-before"),
'treatments__file__end_date__lte'),
+ 'treatments_end_date':
+ SearchAltName(
+ pgettext_lazy("key for text search",
+ "treatment-end-date-before"),
+ 'treatments__end_date__lte'),
'previous_id':
SearchAltName(
pgettext_lazy("key for text search", "previous-id"),