summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-05 12:58:50 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-07 14:35:12 +0200
commitff3e2d6ff4e13ca99bea715ee14562feb1f9d75a (patch)
treebf6aa0f9c851446ab3c128892cc8b968fae1147e /ogcp
parente82796c90238559d207b6654ddc43a9b51c9e6ab (diff)
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.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/forms/action_forms.py6
1 files 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):