Fix form validation
This commit is contained in:
parent
16149ea6bc
commit
3c16f44ed3
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user