Inheritance - Delegation Inheritance

Inheritance - Delegation Inheritance

In delegation inheritance provides more flexibility, we use the _inherits attribute. This is used if you want to sink another model in your current model without affecting the views. So the database tables contain fields in your model and also a field representing the inherited object.

WhatsApp