From 54e0ce864484a1b51cd263fda6b9ca1ce949f9d4 Mon Sep 17 00:00:00 2001 From: Raymond Yee Date: Fri, 8 Jun 2012 15:40:13 -0400 Subject: [PATCH] Slight change in amazon.py to avoid circular imports --- payment/amazon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payment/amazon.py b/payment/amazon.py index 5dad05f4..38a4ed71 100644 --- a/payment/amazon.py +++ b/payment/amazon.py @@ -1,5 +1,4 @@ from regluit.payment.parameters import * -from regluit.payment.manager import PaymentManager from django.core.urlresolvers import reverse from django.conf import settings from regluit.payment.models import Transaction, PaymentResponse @@ -301,6 +300,7 @@ def amazonPaymentReturn(request): print "Calling CANCEL RELATED" # clear out any other active transactions for this user and this campaign + from regluit.payment.manager import PaymentManager p = PaymentManager() p.cancel_related_transaction(transaction, status=TRANSACTION_STATUS_ACTIVE, campaign=transaction.campaign)