diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-08-07 12:49:17 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-08-11 14:07:21 +0200 |
commit | 1d20feffbce11f3579ac8f3dc325e5aa431d4e4a (patch) | |
tree | 8faea87f9e80506c5c8cb8f7eb9158c572494491 /archaeological_finds | |
parent | 49813fddd88b013e17bfa1cc1d4184e5c65fd715 (diff) | |
download | Ishtar-1d20feffbce11f3579ac8f3dc325e5aa431d4e4a.tar.bz2 Ishtar-1d20feffbce11f3579ac8f3dc325e5aa431d4e4a.zip |
🐛 searches: fix exact date searches for datetime fields (refs #6411)
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_treatments.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index a989f1ef4..5e6e1ed98 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -296,6 +296,12 @@ class Treatment( } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) + DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + [ + "start_date", + "end_date", + "creation_date" + ] + DATETIME_FIELDS = BaseHistorizedItem.DATETIME_FIELDS + ["creation_date"] DEFAULT_SEARCH_FORM = ("archaeological_finds.forms_treatments", "TreatmentSelect") |