From 39b9c1b3a9fa7dd82e385bbe8bf41e36140d765e Mon Sep 17 00:00:00 2001 From: grisel-davy Date: Fri, 17 Aug 2018 11:05:40 +0200 Subject: [PATCH] Fix #155 confusion entre request.user et user --- cotisations/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cotisations/views.py b/cotisations/views.py index 82db074b..bc999c57 100644 --- a/cotisations/views.py +++ b/cotisations/views.py @@ -854,7 +854,7 @@ def credit_solde(request, user, **_kwargs): p = get_object_or_404(Paiement, is_balance=True) return form({ 'factureform': refill_form, - 'balance': request.user.solde, + 'balance': user.solde, 'title': _("Refill your balance"), 'action_name': _("Pay"), 'max_balance': p.payment_method.maximum_balance,