From 993c071c7e1c96d338cf772803eaf0b0d91dbaa9 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 4 Apr 2023 13:00:39 +0200 Subject: [PATCH] Fix form validation --- app/but/forms/refcomp_forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/but/forms/refcomp_forms.py b/app/but/forms/refcomp_forms.py index 2b817473..b1ad3e71 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(