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