1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-24 00:12:23 +00:00

change on a field that everyone have (1A don't have bus)

This commit is contained in:
bleizi 2023-08-28 19:26:51 +02:00
parent d27f942339
commit 96da7d01ae
No known key found for this signature in database
GPG Key ID: D46D7E3364433208

View File

@ -969,7 +969,7 @@ class WEIValidateRegistrationView(ProtectQuerysetMixin, ProtectedCreateView):
if not registration.soge_credit and user.note.balance + credit_amount < fee: if not registration.soge_credit and user.note.balance + credit_amount < fee:
# Users must have money before registering to the WEI. # Users must have money before registering to the WEI.
form.add_error('bus', form.add_error('credit_type',
_("This user don't have enough money to join this club, and can't have a negative balance.")) _("This user don't have enough money to join this club, and can't have a negative balance."))
return super().form_invalid(form) return super().form_invalid(form)