From 897986fec8fa1dcc4cc8136859db1204e396eba9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Mon, 8 Aug 2016 04:11:08 +0200 Subject: [PATCH] Correction commit f9c8708 --- kfet/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kfet/views.py b/kfet/views.py index 707e2ddb..a5d330fb 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -449,7 +449,7 @@ def kpsul_perform_operations(request): operationgroup.amount += operation.amount # 4 if operation.type == Operation.DEPOSIT: - required_perms.append('kfet.can_perform_deposit') + required_perms.append('kfet.perform_deposit') # Starting transaction to ensure data consistency # Using select_for_update where it is critical @@ -478,7 +478,7 @@ def kpsul_perform_operations(request): on_acc.save() # Saving addcost_for with new balance if there is one if is_addcost: - addcost_for += addcost_total + addcost_for.balance += addcost_total addcost_for.save() # Saving operation group