8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-28 01:43:46 +00:00

Last fix I think

This commit is contained in:
Maël Kervella 2018-07-16 21:17:09 +00:00
parent 5915485d89
commit 7fe4f63b58

View file

@ -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(