fixing vm list
This commit is contained in:
parent
b0a27b8c75
commit
e67148ff59
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue