summaryrefslogtreecommitdiff
path: root/archaeological_finds/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-11-02 16:03:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:23:19 +0100
commite131856e48cc4644443c62f3f826fa451cb7e66b (patch)
tree5888b277c026e0c6e9209472f016055ba73d77c4 /archaeological_finds/forms.py
parentad0c40ca519ec3d81120744e6c511fb3d5992897 (diff)
downloadIshtar-e131856e48cc4644443c62f3f826fa451cb7e66b.tar.bz2
Ishtar-e131856e48cc4644443c62f3f826fa451cb7e66b.zip
Geodata - search: add search fields on related items searches
Diffstat (limited to 'archaeological_finds/forms.py')
-rw-r--r--archaeological_finds/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archaeological_finds/forms.py b/archaeological_finds/forms.py
index fc1816d32..5a6e066ea 100644
--- a/archaeological_finds/forms.py
+++ b/archaeological_finds/forms.py
@@ -90,7 +90,7 @@ from ishtar_common.forms import (
QAForm,
MultiSearchForm,
LockForm,
- DocumentItemSelect,
+ GeoItemSelect,
)
from ishtar_common.forms_common import get_town_field
from archaeological_context_records.forms import PeriodSelect
@@ -1277,7 +1277,7 @@ DatingFormSet.form_admin_name = _("Find - 040 - Dating")
DatingFormSet.form_slug = "find-040-dating"
-class FindSelect(DocumentItemSelect, PeriodSelect):
+class FindSelect(GeoItemSelect, PeriodSelect):
_model = models.Find
form_admin_name = _("Find - 001 - Search")
form_slug = "find-001-search"
@@ -1646,7 +1646,7 @@ class FindSelect(DocumentItemSelect, PeriodSelect):
FieldType("alteration_causes", models.AlterationCauseType),
FieldType("treatment_emergency", models.TreatmentEmergencyType),
FieldType("cultural_attributions", CulturalAttributionType),
- ]
+ ] + GeoItemSelect.TYPES
SITE_KEYS = {
"archaeological_sites": "attached-to-operation",
"archaeological_sites_name": "name-attached-to-operation",