1.

Describe the inheritance styles in Django?

Answer»

The INHERITANCE styles in Django are 3 in number-

  • Abstract base classes: This inheritance style is used by the developer when they want parents class to RETAIN the data which you do not want to type out for EVERY single child model.
  • Multi-table inheritance: This inheritance style is used if you want to subclass on an existing model and each of the MODELS to have its own database table.
  • Proxy models: This inheritance style allows the USER to modify the python level behavior without actually modifying the model's field.


Discussion

No Comment Found