From e131856e48cc4644443c62f3f826fa451cb7e66b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 2 Nov 2022 16:03:26 +0100 Subject: Geodata - search: add search fields on related items searches --- archaeological_context_records/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archaeological_context_records/forms.py') diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index 8d05e50e1..27900ef80 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -52,7 +52,7 @@ from ishtar_common.forms import ( HistorySelect, MultiSearchForm, LockForm, - DocumentItemSelect, + GeoItemSelect, QAForm, ) from ishtar_common.forms_common import get_town_field @@ -133,7 +133,7 @@ class PeriodSelect(forms.Form): self.fields = fields -class RecordSelect(DocumentItemSelect, PeriodSelect): +class RecordSelect(GeoItemSelect, PeriodSelect): _model = models.ContextRecord form_admin_name = _("Context record - 001 - Search") form_slug = "contextrecord-001-search" @@ -177,7 +177,7 @@ class RecordSelect(DocumentItemSelect, PeriodSelect): FieldType("cr_relation_types", models.RelationType), FieldType("ope_relation_types", OpeRelationType), FieldType("excavation_technics", models.ExcavationTechnicType), - ] + ] + GeoItemSelect.TYPES SITE_KEYS = {"archaeological_site": None} def __init__(self, *args, **kwargs): -- cgit v1.2.3