Skip to content

Commit

Permalink
Correction validation Resp 2
Browse files Browse the repository at this point in the history
  • Loading branch information
davy39 committed Jan 23, 2022
1 parent 88e4c37 commit 343038c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inscription/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ def clean(self):
else:
msg = forms.ValidationError("Veuillez renseigner ce champs SVP.")
for field in required:
self.add_error(field, msg)
if self.cleaned_data.get(field) is None:
self.add_error(field, msg)
return self.cleaned_data

class Meta:
Expand Down

0 comments on commit 343038c

Please sign in to comment.