From 4326ba901612550276fbf0c75a7524530da5fbd1 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sun, 28 Feb 2021 02:16:40 +0100 Subject: [PATCH] Oublis de renaming --- kfet/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kfet/views.py b/kfet/views.py index e403505a..0d9f9544 100644 --- a/kfet/views.py +++ b/kfet/views.py @@ -1098,17 +1098,17 @@ def kpsul_perform_operations(request): if operation.type == Operation.EDIT: required_perms.add("kfet.edit_balance_account") need_comment = True - if account.is_cof: + if on_acc.is_cof: to_addcost_for_balance = to_addcost_for_balance / cof_grant_divisor - (perms, stop) = account.perms_to_perform_operation(amount=operationgroup.amount) + (perms, stop) = on_acc.perms_to_perform_operation(amount=operationgroup.amount) required_perms |= perms if stop: data["errors"].append( { "code": "negative", - "message": f"Le compte {account.trigramme} a un solde insuffisant.", + "message": f"Le compte {on_acc.trigramme} a un solde insuffisant.", } )