Answer the question
In order to leave comments, you need to log in
How to add a user to the child model if it exists in the parent?
1. There is a common user model.
2. There is a model
class Driver(get_user_model()):
...
Answer the question
In order to leave comments, you need to log in
It's better not to inherit, but to add a OneToOne related model. Lots of examples of how to implement user profiles. Here is the same thing. They can be linked differently in this way. Then the user's essence (for login - that's it) is one in any case, and all additional fields are in one-to-one linked models.
And no duplication!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question