From db349745be91d2f78125e21c4869d2f11b78aaa3 Mon Sep 17 00:00:00 2001 From: Hugo LEVY-FALK Date: Fri, 14 Dec 2018 18:33:58 +0100 Subject: [PATCH] Add title when refilling balance --- comet/account/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/comet/account/views.py b/comet/account/views.py index 48a0cc7..0b2ce17 100644 --- a/comet/account/views.py +++ b/comet/account/views.py @@ -17,6 +17,7 @@ def refill_balance(request, pk): if form.is_valid(): sale = form.save(commit=False) sale.account = account + sale.title = "Rechargement de {}€".format(sale.price) sale.save() account.calc_balance() bal = account.balance