Inheritance styles in Django

 Inheritance styles in Django.

Ans: In Django, there are three possible inheritance styles:

1 Abstract Base Classes: This style is used when you only want parent’s class to hold information that you don’t want to type out for each child model.

2 Multi-table Inheritance: This style is used If you are sub-classing an existing model and need each model to have its own database table.

3 Proxy models: You can use this model, If you only want to modify the Python level behavior of the model, without changing the model’s fields.

Posted on by