Pass correct key email
This commit is contained in:
		
					parent
					
						
							
								c232f4c1da
							
						
					
				
			
			
				commit
				
					
						fefcdb5647
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1176,7 +1176,7 @@ class InvoiceListView(LoginRequiredMixin, ListView): | |||
|                 "user_email = {}".format(user_email) | ||||
|             ) | ||||
|             try: | ||||
|                 cu = CustomUser.objects.get(user_email) | ||||
|                 cu = CustomUser.objects.get(email=user_email) | ||||
|             except CustomUser.DoesNotExist as dne: | ||||
|                 logger.debug("User does not exist") | ||||
|                 cu = self.request.user | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue