Fix transaction proccess rejection

This commit is contained in:
Marc Aymerich 2016-06-30 09:46:43 +00:00
parent d96afe41fa
commit 43b6fe1719
1 changed files with 2 additions and 2 deletions

View File

@ -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):