From a0b920ac94d01ab593f843bdfecd33bb3a15c249 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 15 Sep 2021 12:40:21 +0200 Subject: [PATCH] =?UTF-8?q?Don't=20check=20permission=20to=20edit=20credit?= =?UTF-8?q?=20transaction=20test=20while=20deleting=20a=20Sog=C3=A9Credit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Yohann D'ANELLO --- apps/treasury/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/treasury/models.py b/apps/treasury/models.py index 7e4e1566..3ba1ee7c 100644 --- a/apps/treasury/models.py +++ b/apps/treasury/models.py @@ -432,6 +432,7 @@ class SogeCredit(models.Model): # was opened after the validation of the account. self.credit_transaction.valid = False self.credit_transaction.reason += " (invalide)" + self.credit_transaction._force_save = True self.credit_transaction.save() super().delete(**kwargs)