From eb3d426947633e3d19b13a202d208be31676aa12 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 6 Aug 2020 15:18:14 +0200 Subject: [PATCH] :poop: Don't reset a transaction before saving it... --- apps/note/models/transactions.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apps/note/models/transactions.py b/apps/note/models/transactions.py index df64d80d..6cc5174b 100644 --- a/apps/note/models/transactions.py +++ b/apps/note/models/transactions.py @@ -202,8 +202,6 @@ class Transaction(PolymorphicModel): When saving, also transfer money between two notes """ with transaction.atomic(): - if self.pk: - self.refresh_from_db() self.source.refresh_from_db() self.destination.refresh_from_db() self.validate(False)