I have a Django application where I enabled login and registration with Tivix's django-rest-auth (https://github.com/Tivix/django-rest-auth).
Now,
- I want to have a custom user model with few additional fields
- I want to be able to enable registration along with these additional fields.
- Login would be done with email instead of username
What are the steps to achieve this? I went through answers, however I was confused with few things:
- The role of serializers here and custom user signUp form and whether I should have a signUp view as well?
- Custom user model from
AbstractBaseUser
or simplyUser
ofdjango.contrib.auth.models
I already tried to implement something and ran into an issue (django-rest-auth custom registration fails to save extra fields), so wanted to ask for a correct approach.