From 4a72e4f6460bfc2438a436ec4937e860ed77c436 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 3 May 2026 22:32:39 +0200 Subject: ✨ search criteria: autocomplete for periods MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/forms.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'archaeological_operations/forms.py') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 3e94e3963..744294052 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -547,7 +547,9 @@ class OperationSelect(GeoItemSelect): operator_reference = forms.CharField(label=_("Operator reference"), max_length=200) remains = forms.ChoiceField(label=_("Remains"), choices=[]) - periods = forms.ChoiceField(label=_("Periods"), choices=[]) + periods = widgets.Select2SimpleField( + label=_("Periods"), modal="modal-advanced-search" + ) start = DateField(label=_("Start date")) end = DateField(label=_("Excavation end date")) relation_types = forms.ChoiceField( -- cgit v1.2.3