From ac9ba1480b4f56363216d4589faf01d58f48a18f Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 6 May 2017 17:36:02 -0500 Subject: [PATCH] fixed payment issues --- hosting/templates/hosting/create_virtual_machine.html | 4 ++-- hosting/views.py | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hosting/templates/hosting/create_virtual_machine.html b/hosting/templates/hosting/create_virtual_machine.html index 8f85c486..5d67b305 100644 --- a/hosting/templates/hosting/create_virtual_machine.html +++ b/hosting/templates/hosting/create_virtual_machine.html @@ -11,11 +11,11 @@
{% csrf_token %}
- Select VM Type: + Select VM: diff --git a/hosting/views.py b/hosting/views.py index c25686f4..1d811669 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -348,9 +348,9 @@ class PaymentVMView(LoginRequiredMixin, FormView): # 'vm_template': vm_template # } - # hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) - # hosting_admin.init_opennebula_client(request) - # hosting_admin.create(request) + hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) + hosting_admin.init_opennebula_client(request) + hosting_admin.create(request) # Send notification to ungleich as soon as VM has been booked context = { @@ -442,6 +442,7 @@ class CreateVirtualMachinesView(LoginRequiredMixin, View): 'final_price': vm_type.final_price, 'vm_template': vm_template }) + request.session['vm_specs'] = vm_specs return redirect(reverse('hosting:payment')) # def get_queryset(self):