From d5749f65f1a0846ee00ed7ece09d6bde47aadacb Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 13 May 2017 19:57:23 -0500 Subject: [PATCH 1/2] fixed create vm button display --- hosting/templates/hosting/virtual_machines.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosting/templates/hosting/virtual_machines.html b/hosting/templates/hosting/virtual_machines.html index bb99c5e1..2387f89d 100644 --- a/hosting/templates/hosting/virtual_machines.html +++ b/hosting/templates/hosting/virtual_machines.html @@ -4,7 +4,7 @@
-
+

{% trans "Virtual Machines"%}

From bcc32174b21f8a0cfa3ece40a97a3189a21a84db Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 13 May 2017 20:19:09 -0500 Subject: [PATCH 2/2] added permissions to hosting bill view --- hosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index b1f993ee..45e1291d 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -683,9 +683,10 @@ class VirtualMachineView(LoginRequiredMixin, View): return HttpResponseRedirect(self.get_success_url()) -class HostingBillListView(LoginRequiredMixin, ListView): +class HostingBillListView(PermissionRequiredMixin, LoginRequiredMixin, ListView): template_name = "hosting/bills.html" login_url = reverse_lazy('hosting:login') + permission_required = ['view_hostingview'] context_object_name = "users" model = StripeCustomer paginate_by = 10