Fix user creation.

This commit is contained in:
Tom Hacohen
2020-12-28 17:46:20 +02:00
parent 3d438b9591
commit f7858a20b7
2 changed files with 3 additions and 3 deletions

View File

@@ -28,7 +28,7 @@ def get_user_queryset(queryset, context: CallbackContext):
def create_user(context: CallbackContext, *args, **kwargs):
custom_func = app_settings.CREATE_USER_FUNC
if custom_func is not None:
return custom_func(*args, **kwargs)
return custom_func(context, *args, **kwargs)
return User.objects.create_user(*args, **kwargs)