From 7fe4f63b58499af5f3b2a4f5ae4ffff5644af11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Mon, 16 Jul 2018 21:17:09 +0000 Subject: [PATCH] Last fix I think --- cotisations/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/forms.py b/cotisations/forms.py index d7a2e2ba..7ad9e413 100644 --- a/cotisations/forms.py +++ b/cotisations/forms.py @@ -291,7 +291,7 @@ class RechargeForm(FormRevMixin, Form): the value is well inside the possible limits """ value = self.cleaned_data['value'] - balance_method, _created = get_object_or_404(balance.PaymentMethod) + balance_method = get_object_or_404(balance.PaymentMethod) if balance_method.maximum_balance is not None and \ value + self.user.solde > balance_method.maximum_balance: raise forms.ValidationError(