From 3e755b3b68730aab8e49fe0cf1089c4036208564 Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 29 Apr 2017 12:46:56 -0500 Subject: [PATCH] added vm_template parameter to djangohosting view --- hosting/templates/hosting/includes/_pricing.html | 1 + hosting/views.py | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/hosting/templates/hosting/includes/_pricing.html b/hosting/templates/hosting/includes/_pricing.html index 92033be8..284f0717 100644 --- a/hosting/templates/hosting/includes/_pricing.html +++ b/hosting/templates/hosting/includes/_pricing.html @@ -24,6 +24,7 @@ {% csrf_token %} + diff --git a/hosting/views.py b/hosting/views.py index b2625853..f3afca94 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -310,17 +310,17 @@ class PaymentVMView(LoginRequiredMixin, FormView): order.set_approved() # Create VM using oppenebula functions - _request = namedtuple('request', 'POST user') - _request.user = request.user + # _request = namedtuple('request', 'POST user') + # _request.user = request.user # user = namedtuple('user', 'email') # email - _request.POST = { - 'vm_template': vm_template - } + # _request.POST = { + # 'vm_template': vm_template + # } hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) - hosting_admin.init_opennebula_client(_request) - hosting_admin.create(_request) + hosting_admin.init_opennebula_client(request) + hosting_admin.create(request) # Send notification to ungleich as soon as VM has been booked context = {