Commit 7fe4f63b authored by Maël Kervella's avatar Maël Kervella

Last fix I think

parent 5915485d
......@@ -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(
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment