From 899cd863ebec144b6ec7a10ee4e8fd267ae64383 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Sun, 15 Jul 2018 20:16:02 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20la=20visibilit=C3=A9=20du=20bouton=20de?= =?UTF-8?q?=20recharge=20de=20solde.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- users/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/users/views.py b/users/views.py index 4f136f50..040b7b3f 100644 --- a/users/views.py +++ b/users/views.py @@ -899,8 +899,8 @@ def profil(request, users, **_kwargs): SortTable.USERS_INDEX_WHITE ) balance, _created = Paiement.objects.get_or_create(moyen="solde") - user_solde = Facture.can_create(request.user) \ - and balance.can_use_payment(request.user) + user_solde = Facture.can_create(request.user)[0] \ + and balance.can_use_payment(request.user)[0] return render( request, 'users/profil.html',