diff --git a/hosting/opennebula_functions.py b/hosting/opennebula_functions.py index 35a2e6fa..8c2fc5d2 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()