CustomUser #8416
Unanswered
LrnzDC3696
asked this question in
Ideas & Suggestions
CustomUser
#8416
Replies: 2 comments 6 replies
-
But do you want to override the ObtainAuthToken(APIView) class with an custom serializer class? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Can't you just pass the user's email as And just to make sure, have you set your custom user model's |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context:
I am working on a route where a person can make an account. I have made a custom user because I want them to be able to make an account via email and not username.
Problem:
The code is not "dynamic" because the username is hardcoded.
In here the username is hard coded.
django-rest-framework/rest_framework/authtoken/serializers.py
Line 8 in 070c32f
I don't want to use a third party lib.
I don't want to do some hacky stuff.
Solution in mind:
maybe use the get_user_model?
Beta Was this translation helpful? Give feedback.
All reactions