From 2350247cdb145dd12d90ce3fb6451a8189308f9a Mon Sep 17 00:00:00 2001 From: PCoder Date: Fri, 30 Jun 2017 12:27:18 +0530 Subject: [PATCH] Removed unused code --- datacenterlight/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index cd2aa660..49891730 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -18,7 +18,7 @@ from membership.models import StripeCustomer from hosting.models import HostingOrder, HostingBill from utils.stripe_utils import StripeUtils from datetime import datetime -from membership.models import CustomUser, StripeCustomer, CreditCards +from membership.models import CustomUser, StripeCustomer from opennebula_api.models import OpenNebulaManager from opennebula_api.serializers import VirtualMachineTemplateSerializer, VirtualMachineSerializer @@ -344,7 +344,7 @@ class PaymentOrderView(FormView): # Get or create stripe customer customer = StripeCustomer.get_or_create(email=user.get('email'), - token=token) + token=token) if not customer: form.add_error("__all__", "Invalid credit card") return self.render_to_response(self.get_context_data(form=form))