Abstract Inheritance7:13 with Kenneth Love
Django models can be inherit from each other in two ways. Let's look at one of them: abstract inheritance.
NOTE: This workspace contains a large minified CSS file. Trying to open this file may freeze your workspace. You will not need to adjust the CSS or open the file for this course.
You'll likely find yourself using abstract inheritance more than any other kind. It's cleaner for the database, easier to wrap your head around, and generally produces faster, nicer queries.
All that's required to make a model abstract is to put
abstract = True in the model's
You need to sign up for Treehouse in order to download course files.Sign up