• What are the inheritance properties in Django?

    Answered

    What are the inheritance properties in Django?

    Silver Member Asked on June 14, 2018 in Python.
    Add Comment
  • 1 Answer(s)
    Best answer

    Answer:
    There is three possible inheritance in Django:
    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: This style is used, if you only want to modify the Python level behavior of the model, without changing the model’s fields.

    Silver Member Answered on June 14, 2018.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.