When I started this project I made a grave mistake of using the default user model for everything, Fast forward to today we maintain two models Users and Profiles which ideally should be one. In this task, we will have to migrate every user to a CustomUser model that subclasses from AbstractUser.
Tasks
Identify and replace every direct usage of the User model with get_user_model.
Create a new Custom user and define a relationship with the Profile model.
Write migrate strategy to migrate all current users to the AbstractUser model
This is the basic overview of the task, a much more detailed discussion must take place before starting with the task.
When I started this project I made a grave mistake of using the default user model for everything, Fast forward to today we maintain two models Users and Profiles which ideally should be one. In this task, we will have to migrate every user to a
CustomUser
model that subclasses fromAbstractUser
.Tasks
This is the basic overview of the task, a much more detailed discussion must take place before starting with the task.