diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-04-22 15:16:08 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-04-23 11:19:15 +0200 |
commit | f6607acad89198b7b33df4c99041af84c9fe9d69 (patch) | |
tree | f27677df294f46df387ec452cc12e751d33c8ce7 /archaeological_finds/models_treatments.py | |
parent | 2c539d0c805f59fea30546740e9fafbae94d132a (diff) | |
download | Ishtar-f6607acad89198b7b33df4c99041af84c9fe9d69.tar.bz2 Ishtar-f6607acad89198b7b33df4c99041af84c9fe9d69.zip |
🐛 fix table export with json fields in search (refs #6292)
Diffstat (limited to 'archaeological_finds/models_treatments.py')
-rw-r--r-- | archaeological_finds/models_treatments.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py index 69a8b899c..c332a6aa3 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -296,6 +296,9 @@ class Treatment( } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) + + DEFAULT_SEARCH_FORM = ("archaeological_finds.forms_treatments", "TreatmentSelect") + HISTORICAL_M2M = [ "treatment_types", ] @@ -1351,6 +1354,8 @@ class TreatmentFile( ALT_NAMES.update(DocumentItem.ALT_NAMES) SHEET_EMPTY_KEYS = ["name"] + DEFAULT_SEARCH_FORM = ("archaeological_finds.forms_treatments", "TreatmentFileSelect") + # fields year = models.IntegerField(_("Year"), default=get_current_year) index = models.IntegerField(_("Index"), default=1) |