mirror of https://gitlab.crans.org/bde/nk20
Don't block valid payments
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
8cf9dfb9b9
commit
f60691846b
|
@ -304,7 +304,7 @@ class FutureUserDetailView(ProtectQuerysetMixin, LoginRequiredMixin, FormMixin,
|
|||
return self.form_invalid(form)
|
||||
|
||||
# Check that payment information are filled, like last name and first name
|
||||
if credit_type is not None and credit_amount > 0 and SpecialTransaction.validate_payment_form(form):
|
||||
if credit_type is not None and credit_amount > 0 and not SpecialTransaction.validate_payment_form(form):
|
||||
return self.form_invalid(form)
|
||||
|
||||
# Save the user and finally validate the registration
|
||||
|
|
Loading…
Reference in New Issue