Add title when refilling balance

This commit is contained in:
Hugo LEVY-FALK 2018-12-14 18:33:58 +01:00
parent 80a1a67643
commit db349745be

View file

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