-
Notifications
You must be signed in to change notification settings - Fork 326
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USER_DETAILS_SERIALIZER setting not being detected #181
Comments
@Luctia Could you add your custom user model? I am just wondering that there is no |
@jerinpetergeorge My user model indeed does not have an |
@jerinpetergeorge thanks for the PR and the explanation in the comments there. I'm just wondering, will this fix the entire issue? You've changed |
as you can see in the traceback, In short, the root cause has been fixed. |
Similar to the issue iMerica#181, dj-rest=auth was not loading my custom UserDetailsSerializer and when I use the default one there are two fields that my UserModel does not have. We should not enforce people to have this fields either and therefore I have done the same as the previous PR but with "first_name" and "last_name"
I have a custom user model in my project and thus would also like a custom user serializer. To do this, I have added the following lines in my
settings.py
:Upon running my project, I'm getting the following error:
It looks like this error is coming from the
dj_rest_auth.serializers.UserDetailsSerializer
class, so it seems to me like it is completely ignoring my setting. Am I formatting the setting wrong or is there something else going on?The text was updated successfully, but these errors were encountered: