mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-28 12:32:49 +02:00
💩 Don't reset a transaction before saving it...
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user