Add title when refilling balance
This commit is contained in:
parent
80a1a67643
commit
db349745be
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue