1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-23 16:02:25 +00:00

Don't check permission to edit credit transaction test while deleting a SogéCredit

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2021-09-15 12:40:21 +02:00
parent ab2e580e68
commit a0b920ac94
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -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)