From 6217f35f67d97a75536c3f8c0d6b4579cd0959f9 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Tue, 18 Aug 2020 11:46:35 +0200 Subject: [PATCH] Notes are force-updated when a transaction is saved --- apps/note/models/transactions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/note/models/transactions.py b/apps/note/models/transactions.py index 3d37548e..4adf9cb3 100644 --- a/apps/note/models/transactions.py +++ b/apps/note/models/transactions.py @@ -238,8 +238,10 @@ class Transaction(PolymorphicModel): # Save notes self.source.balance += diff_source + self.source._force_save = True self.source.save() self.destination.balance += diff_dest + self.destination._force_save = True self.destination.save() def delete(self, **kwargs):