Using VMDetail model to show order details

This commit is contained in:
PCoder 2017-09-25 01:49:00 +05:30
parent f2213305f6
commit 7fcece40c1

View file

@ -679,6 +679,10 @@ class OrdersHostingDetailView(LoginRequiredMixin,
if obj is not None:
# invoice for previous order
try:
vm_detail = VMDetail.objects.get(vm_id=obj.vm_id)
context['vm'] = vm_detail.__dict__
except VMDetail.DoesNotExist:
try:
manager = OpenNebulaManager(
email=owner.email, password=owner.password