Skip to content
Snippets Groups Projects
Commit eb3d4269 authored by ynerant's avatar ynerant
Browse files

💩 Don't reset a transaction before saving it...

parent d8c7018b
No related branches found
No related tags found
3 merge requests!104Beta,!98Morefront,!91Documents
Pipeline #8372 passed with stages
in 5 minutes and 10 seconds
...@@ -202,8 +202,6 @@ class Transaction(PolymorphicModel): ...@@ -202,8 +202,6 @@ class Transaction(PolymorphicModel):
When saving, also transfer money between two notes When saving, also transfer money between two notes
""" """
with transaction.atomic(): with transaction.atomic():
if self.pk:
self.refresh_from_db()
self.source.refresh_from_db() self.source.refresh_from_db()
self.destination.refresh_from_db() self.destination.refresh_from_db()
self.validate(False) self.validate(False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment