From e67148ff5973e6192c9737f28a8e6266ae54237c Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 6 May 2017 18:39:19 -0500 Subject: [PATCH] fixing vm list --- hosting/opennebula_functions.py | 2 +- hosting/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/opennebula_functions.py b/hosting/opennebula_functions.py index 9050b7c7..7657b457 100644 --- a/hosting/opennebula_functions.py +++ b/hosting/opennebula_functions.py @@ -107,7 +107,7 @@ class HostingManageVMAdmin(admin.ModelAdmin): logger.error("ValueError : {0}".format(value_err)) context = dict( # Include common variables for rendering the admin template. - self.admin_site.each_context(request), + # self.admin_site.each_context(request), vms=vm_pool, ) return context diff --git a/hosting/views.py b/hosting/views.py index 7f9dbfdc..e0f96426 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -413,7 +413,7 @@ class VirtualMachinesPlanListView(LoginRequiredMixin, ListView): def get_queryset(self): hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) - print(hosting_admin.show_vms(self.request)) + print(hosting_admin.show_vms_view(self.request)) user = self.request.user self.queryset = VirtualMachinePlan.objects.active(user) return super(VirtualMachinesPlanListView, self).get_queryset()