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:
Pcoder 2017-08-12 19:26:02 +02:00 committed by GitHub
commit 3b1cd200d6

View file

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