Content description:
In this post I'll describe how to create your own user model in Django.
Then I'll test the model and manager I created.
First, I create a new application called users.
python manage.py startapp users
In the models.py file, I create a custom user that inherits from the AbstractUser class. I add a checkbox in the profile so that a user can be a client or a contractor. A client issues delivery orders to warehouses, and a contractor accepts them.