Merge pull request #430 from amarynets/bugfix/add_customuser_parameter
Fixed `TypeError: get_anonymous_user_instance() takes 0 positional arguments but 1 was given`
This commit is contained in:
		
				commit
				
					
						3b1cd200d6
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -19,7 +19,7 @@ REGISTRATION_MESSAGE = {'subject': "Validation mail",
 | 
			
		|||
                        'from': 'test@test.com'}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def get_anonymous_user_instance():
 | 
			
		||||
def get_anonymous_user_instance(CustomUser):
 | 
			
		||||
    return CustomUser(name='Anonymous', email='anonymous@ungleich.ch',
 | 
			
		||||
                      validation_slug=make_password(None))
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue