Fix getting users email and password from the request object
This commit is contained in:
		
					parent
					
						
							
								a1a85e6c18
							
						
					
				
			
			
				commit
				
					
						0b99a0cbec
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1284,8 +1284,8 @@ class InvoiceDetailView(LoginRequiredMixin, DetailView):
 | 
			
		|||
                # fallback to get it from the infrastructure
 | 
			
		||||
                try:
 | 
			
		||||
                    manager = OpenNebulaManager(
 | 
			
		||||
                        email=self.request.email,
 | 
			
		||||
                        password=self.request.password
 | 
			
		||||
                        email=self.request.user.email,
 | 
			
		||||
                        password=self.request.user.password
 | 
			
		||||
                    )
 | 
			
		||||
                    vm = manager.get_vm(vm_id)
 | 
			
		||||
                    context['vm'] = VirtualMachineSerializer(vm).data
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue