added permissions to hosting bill view

This commit is contained in:
Levi 2017-05-13 20:19:09 -05:00
parent d5749f65f1
commit bcc32174b2
1 changed files with 2 additions and 1 deletions

View File

@ -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