From b1d246d7045e07200b21049a714027dd72060f84 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 20 Mar 2025 12:37:21 +0100 Subject: ✨ wizards: improve performance when many are attached MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archaeological_operations/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'archaeological_operations/forms.py') diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index 72d2eaf35..6a76c4197 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -717,9 +717,7 @@ class OperationFormGeneral(CustomForm, ManageOldType): address = forms.CharField(label=_("Address / Locality"), required=False, max_length=500, widget=forms.Textarea) town = widgets.Select2MultipleField( - label=_("Towns"), - model=Town, - required=False, remote=True) + label=_("Towns"), model=Town, long_widget=True, required=False, remote=True) year = forms.IntegerField(label=_("Year"), initial=lambda: datetime.datetime.now().year, validators=[validators.MinValueValidator(1000), -- cgit v1.2.3