angular-django-registration-auth icon indicating copy to clipboard operation
angular-django-registration-auth copied to clipboard

Custom User model support in registration/login API endpoints

Open vtoupet opened this issue 9 years ago • 0 comments

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

vtoupet avatar Jul 21 '16 07:07 vtoupet