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