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.
master
Alejandro Sirgo Rica 2024-06-05 12:58:50 +02:00
parent e82796c902
commit ff3e2d6ff4
1 changed files with 3 additions and 3 deletions

View File

@ -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):