LinkedIn - https://www.linkedin.com/in/alex-cher/
Model inheritance in Django works almost identically to the way normal class inheritance works in Python, but the basics at the beginning of the page should still be followed. That means the base class should subclass django.db.models.Model.
The only decision you have to make is whether you want the parent models to be models in their own right (with their own database tables), or if the parents are just holders of common information that will only be visible through the child models.
There are three styles of inheritance that are possible in Django.
Apple Podcasts - https://link.chtbl.com/Apple_Podcasts
Spotify - https://link.chtbl.com/8_-EyCh1
Google Podcasts - https://link.chtbl.com/kQr7HKma
Castbox - https://link.chtbl.com/rVlRcBZN
https://docs.djangoproject.com/en/3.0/topics/db/models/#model-inheritance
Get early access and exclusive content:
Podchaser is the ultimate destination for podcast data, search, and discovery. Learn More