showing VMS

This commit is contained in:
Levi 2017-04-29 12:54:14 -05:00
parent 4ec830550c
commit 2658205008

View file

@ -381,7 +381,8 @@ class VirtualMachinesPlanListView(LoginRequiredMixin, ListView):
ordering = '-id'
def get_queryset(self):
print(HostingManageVMAdmin.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()