From 43b6fe17197515d01f3f712736172218bee85b03 Mon Sep 17 00:00:00 2001 From: Marc Aymerich Date: Thu, 30 Jun 2016 09:46:43 +0000 Subject: [PATCH] Fix transaction proccess rejection --- orchestra/contrib/payments/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/orchestra/contrib/payments/models.py b/orchestra/contrib/payments/models.py index 0c65345d..82f2ce22 100644 --- a/orchestra/contrib/payments/models.py +++ b/orchestra/contrib/payments/models.py @@ -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):