diff --git a/spug_api/apps/account/views.py b/spug_api/apps/account/views.py index 3eebac75..7277665f 100644 --- a/spug_api/apps/account/views.py +++ b/spug_api/apps/account/views.py @@ -43,7 +43,7 @@ def post(self, request): if form.id: User.objects.filter(pk=form.id).update(**form) else: - User.objects.create( + user = User.objects.create( password_hash=User.make_password(password), created_by=request.user, **form