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 10:48:32 +0200 |
commit | f804dfc0a48130eefe7048938c20d7d19a69caaf (patch) | |
tree | 84206796b1048bd9e46ab353f272c4c5e703266b /archaeological_finds/models_treatments.py | |
parent | aded77feef3381632281dcc005160e2cb0c6b4dc (diff) | |
download | Ishtar-f804dfc0a48130eefe7048938c20d7d19a69caaf.tar.bz2 Ishtar-f804dfc0a48130eefe7048938c20d7d19a69caaf.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 cbca04c9a..3f468b480 100644 --- a/archaeological_finds/models_treatments.py +++ b/archaeological_finds/models_treatments.py @@ -178,6 +178,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", ] @@ -1188,6 +1191,8 @@ class TreatmentFile( ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) ALT_NAMES.update(DocumentItem.ALT_NAMES) + DEFAULT_SEARCH_FORM = ("archaeological_finds.forms_treatments", "TreatmentFileSelect") + # fields year = models.IntegerField(_("Year"), default=get_current_year) index = models.IntegerField(_("Index"), default=1) |