From ff3e2d6ff4e13ca99bea715ee14562feb1f9d75a Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 5 Jun 2024 12:58:50 +0200 Subject: forms: disable validation for dynamically populated select fields Disable form validation for dynamically populated select fields, otherwise, user hits bogus errors. This problem was introduced by COMMIT 43e3346. --- ogcp/forms/action_forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index bb66881..718bd3d 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -136,10 +136,10 @@ class ClientDetailsForm(FlaskForm): choices=[('ogLive', 'Default'),]) remote = BooleanField(label=_l('Remote')) maintenance = BooleanField(label=_l('Maintenance')) - repo = SelectField(label=_l('Repository')) - room = SelectField(label=_l('Room')) + repo = SelectField(label=_l('Repository'), validate_choice=False) + room = SelectField(label=_l('Room'), validate_choice=False) folder_id = HiddenField() - boot = SelectField(label=_l('Boot Mode')) + boot = SelectField(label=_l('Boot Mode'), validate_choice=False) submit = SubmitField(label=_l('Submit')) class ImportClientsForm(FlaskForm): -- cgit v1.2.3-18-g5258