Skip to content
Snippets Groups Projects
Verified Commit f6069184 authored by ynerant's avatar ynerant
Browse files

Don't block valid payments


Signed-off-by: ynerant's avatarYohann D'ANELLO <ynerant@crans.org>
parent 8cf9dfb9
No related branches found
No related tags found
2 merge requests!172WEI, diverses améliorations,!163More linting
Pipeline #8943 failed with stages
in 12 minutes and 55 seconds
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment