Fix transaction proccess rejection
This commit is contained in:
parent
d96afe41fa
commit
43b6fe1719
|
@ -199,8 +199,8 @@ class TransactionProcess(models.Model):
|
||||||
|
|
||||||
def abort(self):
|
def abort(self):
|
||||||
self.state = self.ABORTED
|
self.state = self.ABORTED
|
||||||
for transaction in self.transaction.all():
|
for transaction in self.transactions.all():
|
||||||
transaction.mark_as_aborted()
|
transaction.mark_as_rejected()
|
||||||
self.save(update_fields=('state', 'updated_at'))
|
self.save(update_fields=('state', 'updated_at'))
|
||||||
|
|
||||||
def commit(self):
|
def commit(self):
|
||||||
|
|
Loading…
Reference in a new issue