summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
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
commitf6607acad89198b7b33df4c99041af84c9fe9d69 (patch)
treef27677df294f46df387ec452cc12e751d33c8ce7 /archaeological_finds
parent2c539d0c805f59fea30546740e9fafbae94d132a (diff)
downloadIshtar-f6607acad89198b7b33df4c99041af84c9fe9d69.tar.bz2
Ishtar-f6607acad89198b7b33df4c99041af84c9fe9d69.zip
🐛 fix table export with json fields in search (refs #6292)
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_finds.py2
-rw-r--r--archaeological_finds/models_treatments.py5
2 files changed, 7 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index d10494483..4ec0742dd 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1832,6 +1832,8 @@ class Find(
ALT_NAMES.update(GeoItem.ALT_NAMES_FOR_FIND())
ALT_NAMES.update(Imported.ALT_NAMES)
+ DEFAULT_SEARCH_FORM = ("archaeological_finds.forms", "FindSelect")
+
"""
# kept as an example
DYNAMIC_REQUESTS = {
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)