1.

List Out The Inheritance Styles In Django?

Answer»

In Django, there is three possible inheritance styles

  1. Abstract BASE classes: This style is used when you only wants 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

In Django, there is three possible inheritance styles



Discussion

No Comment Found