fixed payment issues
This commit is contained in:
parent
ed806910e6
commit
ac9ba1480b
2 changed files with 6 additions and 5 deletions
|
@ -11,11 +11,11 @@
|
|||
<form method="POST" action="">
|
||||
{% csrf_token %}
|
||||
<div class="form-group">
|
||||
Select VM Type:
|
||||
Select VM:
|
||||
<select name="vm_template">
|
||||
{% for vm in vm_types %}
|
||||
|
||||
<option value="{{vm.id}}">CORE: {{vm.cores}}- RAM: {{vm.memory}} - SSD: {{vm.disk_size}} </option>
|
||||
<option value="{{vm.id}}">CORE: {{vm.cores}}, RAM: {{vm.memory}}, SSD: {{vm.disk_size}} </option>
|
||||
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue