From 9086d3315897246be1394afebbd39caf374213a2 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 23 Aug 2021 18:51:34 +0200 Subject: [PATCH] [WEI] Caution check is not required to validate registrations Signed-off-by: Yohann D'ANELLO --- apps/wei/views.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/wei/views.py b/apps/wei/views.py index a27fe18a..3371c963 100644 --- a/apps/wei/views.py +++ b/apps/wei/views.py @@ -918,10 +918,6 @@ class WEIValidateRegistrationView(ProtectQuerysetMixin, ProtectedCreateView): if credit_type is None or registration.soge_credit: credit_amount = 0 - if not registration.caution_check and not registration.first_year: - form.add_error('bus', _("This user didn't give her/his caution check.")) - return super().form_invalid(form) - if not registration.soge_credit and user.note.balance + credit_amount < fee: # Users must have money before registering to the WEI. form.add_error('bus',