diff --git a/datacenterlight/tests.py b/datacenterlight/tests.py index 19ba4d7e..3405cfb6 100644 --- a/datacenterlight/tests.py +++ b/datacenterlight/tests.py @@ -13,7 +13,6 @@ from datacenterlight.tasks import create_vm_task from membership.models import StripeCustomer from opennebula_api.serializers import VMTemplateSerializer from utils.hosting_utils import get_vm_price -from utils.models import BillingAddress from utils.stripe_utils import StripeUtils diff --git a/datacenterlight/views.py b/datacenterlight/views.py index 962b2850..40544fef 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -19,7 +19,7 @@ from hosting.forms import HostingUserLoginForm from membership.models import CustomUser, StripeCustomer from opennebula_api.serializers import VMTemplateSerializer from utils.forms import ( - BillingAddressForm, BillingAddressFormSignup, UserBillingAddressForm + BillingAddressForm, BillingAddressFormSignup ) from utils.hosting_utils import get_vm_price from utils.mailer import BaseEmail diff --git a/hosting/views.py b/hosting/views.py index e929f60b..6d4f15ca 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -790,7 +790,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, stripe_subscription_obj = subscription_result.get('response_object') # Check if the subscription was approved and is active if (stripe_subscription_obj is None or - stripe_subscription_obj.status != 'active'): + stripe_subscription_obj.status != 'active'): msg = subscription_result.get('error') messages.add_message(self.request, messages.ERROR, msg, extra_tags='failed_payment')