mirror of https://gitlab.crans.org/bde/nk20
Notes are force-updated when a transaction is saved
This commit is contained in:
parent
e974eaa1fe
commit
6217f35f67
|
@ -238,8 +238,10 @@ class Transaction(PolymorphicModel):
|
||||||
|
|
||||||
# Save notes
|
# Save notes
|
||||||
self.source.balance += diff_source
|
self.source.balance += diff_source
|
||||||
|
self.source._force_save = True
|
||||||
self.source.save()
|
self.source.save()
|
||||||
self.destination.balance += diff_dest
|
self.destination.balance += diff_dest
|
||||||
|
self.destination._force_save = True
|
||||||
self.destination.save()
|
self.destination.save()
|
||||||
|
|
||||||
def delete(self, **kwargs):
|
def delete(self, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue