From 041352ac6d5049fef6d77211f25265d69e9dd750 Mon Sep 17 00:00:00 2001 From: "M.Ravi" Date: Thu, 22 Jun 2017 00:28:44 +0530 Subject: [PATCH] Cleaned up some commented code --- datacenterlight/views.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/datacenterlight/views.py b/datacenterlight/views.py index fd024c94..0c576f3a 100644 --- a/datacenterlight/views.py +++ b/datacenterlight/views.py @@ -373,34 +373,6 @@ class PaymentOrderView(FormView): date=int(datetime.now().strftime("%s"))) ) - # Create a Hosting Order - #order = HostingOrder.create( - # price=final_price, - # vm_id=vm_id, - # customer=customer, - # billing_address=billing_address - #) - - ## Create a Hosting Bill - #bill = HostingBill.create( - # customer=customer, billing_address=billing_address) - # - ## Create Billing Address for User if he does not have one - #if not customer.user.billing_addresses.count(): - # billing_address_data.update({ - # 'user': customer.user.id - # }) - # billing_address_user_form = UserBillingAddressForm( - # billing_address_data) - # billing_address_user_form.is_valid() - # billing_address_user_form.save() - # - ## Associate an order with a stripe payment - #order.set_stripe_charge(charge) - - # If the Stripe payment is success, set order status approved - #order.set_approved() - vm = VirtualMachineSerializer(manager.get_vm(vm_id)).data context = {