Fix form validation

This commit is contained in:
Emmanuel Viennet 2023-04-04 13:00:39 +02:00
parent dd89e6fa9c
commit 993c071c7e

View File

@ -38,8 +38,8 @@ class RefCompLoadForm(FlaskForm):
submit = SubmitField("Valider")
cancel = SubmitField("Annuler")
def validate(self):
if not super().validate():
def validate(self, extra_validators=None):
if not super().validate(extra_validators):
return False
if (self.referentiel_standard.data == "0") == (not self.upload.data):
self.referentiel_standard.errors.append(