From e99be51de17303d52014f52e3e9331784093e5c2 Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 6 May 2017 18:19:28 -0500 Subject: [PATCH] adding list vm --- hosting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index 912804d1..7f9dbfdc 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -412,8 +412,8 @@ class VirtualMachinesPlanListView(LoginRequiredMixin, ListView): ordering = '-id' def get_queryset(self): - # hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) - # print(hosting_admin.show_vms(self.request)) + hosting_admin = HostingManageVMAdmin.__new__(HostingManageVMAdmin) + print(hosting_admin.show_vms(self.request)) user = self.request.user self.queryset = VirtualMachinePlan.objects.active(user) return super(VirtualMachinesPlanListView, self).get_queryset()