added permissions to hosting bill view
This commit is contained in:
		
					parent
					
						
							
								d5749f65f1
							
						
					
				
			
			
				commit
				
					
						bcc32174b2
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue