diff --git a/app/but/forms/refcomp_forms.py b/app/but/forms/refcomp_forms.py index 2b817473c..b1ad3e71b 100644 --- a/app/but/forms/refcomp_forms.py +++ b/app/but/forms/refcomp_forms.py @@ -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(