diff --git a/frontend/views.py b/frontend/views.py index 348e4b2b..1d5482ad 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -49,7 +49,7 @@ from regluit.frontend.forms import EbookForm, CustomPremiumForm, EditManagersFor from regluit.payment.manager import PaymentManager from regluit.payment.models import Transaction from regluit.payment.parameters import TARGET_TYPE_CAMPAIGN, TARGET_TYPE_DONATION, PAYMENT_TYPE_AUTHORIZATION -from regluit.payment.parameters import TRANSACTION_STATUS_ACTIVE, TRANSACTION_STATUS_COMPLETE_PRIMARY, TRANSACTION_STATUS_CANCELED, TRANSACTION_STATUS_ERROR, TRANSACTION_STATUS_FAILED +from regluit.payment.parameters import TRANSACTION_STATUS_ACTIVE, TRANSACTION_STATUS_COMPLETE_PRIMARY, TRANSACTION_STATUS_CANCELED, TRANSACTION_STATUS_ERROR, TRANSACTION_STATUS_FAILED, TRANSACTION_STATUS_INCOMPLETE from regluit.payment.paypal import Preapproval from regluit.core import goodreads from tastypie.models import ApiKey diff --git a/payment/manager.py b/payment/manager.py index e7c41962..bdada8ec 100644 --- a/payment/manager.py +++ b/payment/manager.py @@ -334,7 +334,7 @@ class PaymentManager( object ): ''' # only allow active transactions to go through again, if there is an error, intervention is needed - transactions = Transaction.objects.filter(campaign=campaign, status=IPN_PREAPPROVAL_STATUS_ACTIVE) + transactions = Transaction.objects.filter(campaign=campaign, status=TRANSACTION_STATUS_ACTIVE) for t in transactions: