Skip to content
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

Custom User model support in registration/login API endpoints #24

Open
vtoupet opened this issue Jul 21, 2016 · 0 comments
Open

Custom User model support in registration/login API endpoints #24

vtoupet opened this issue Jul 21, 2016 · 0 comments

Comments

@vtoupet
Copy link

vtoupet commented Jul 21, 2016

It looks like custom user model is not supported by default within django-rest-auth.

I've implemented a custom user model that do not have a username. USERNAME_FIELD is set to 'email'. When I access to /rest-auth/registration URI, I see that username is a mandatory field.

Shouldn't there be a mechanism to build the serializer dynamically based on the user model set with settings.AUTH_USER_MODEL as it is performed with django-allauth?

Is there any way to workaround this issue?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant