I set up the Custom UserModel and registered it in the settings.py file.
You may check the comments I left on each commit.
I also set up one-to-one relationships between the two user models, and the customusermodel.
With this, we may not need to define the email and password fields in the school and student model again.
But now we can define (is_student = True) inside the student model and (is_school = True) inside the school model.
I set up the Custom UserModel and registered it in the settings.py file. You may check the comments I left on each commit.
I also set up one-to-one relationships between the two user models, and the customusermodel. With this, we may not need to define the email and password fields in the school and student model again. But now we can define (is_student = True) inside the student model and (is_school = True) inside the school model.