Issue:
I am using session-based login and creating a new user with dj-rest-auth. The user is created successfully after hitting the registration endpoint, and I verify that in my database. I expect a 201 status code to be returned, but instead a 204 status code is returned. It looks like the reason for this is that registration.views.RegisterView.get_response_data() is returningNone` when it should return some serialized data - I suspect the new code should be something like this:
elif getattr(settings, 'REST_SESSION_LOGIN', True):
data = {'user': user}
return UserDetailsSerializer(user)
Issue: I am using session-based login and creating a new user with
dj-rest-auth
. The user is created successfully after hitting theregistration
endpoint, and I verify that in my database. I expect a 201 status code to be returned, but instead a 204 status code is returned. It looks like the reason for this is thatregistration.views.RegisterView.get_response_data() is returning
None` when it should return some serialized data - I suspect the new code should be something like this: