Browse Source

Last fix I think

fix_front_profil
Maël Kervella 8 years ago
parent
commit
7fe4f63b58
  1. 2
      cotisations/forms.py

2
cotisations/forms.py

@ -291,7 +291,7 @@ class RechargeForm(FormRevMixin, Form):
the value is well inside the possible limits the value is well inside the possible limits
""" """
value = self.cleaned_data['value'] 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 \ if balance_method.maximum_balance is not None and \
value + self.user.solde > balance_method.maximum_balance: value + self.user.solde > balance_method.maximum_balance:
raise forms.ValidationError( raise forms.ValidationError(

Loading…
Cancel
Save