https://docs.djangoproject.com/en/2.0/topics/db/models/#module-django.db.models Contents Models Quick exampleUsing modelsFields Field typesField optionsAutomatic primary key fieldsVerbose field namesRelationships Many-to-one relationshipsMany-to-many relationshipsExtra fields on many-to-many relationshipsOne-to-one relationshipsModels across filesField name restrictionsCustom field typesMeta optionsModel attributesModel methods Overriding predefined model methodsExecuting custom SQLModel inheritance Abstract base classes Meta inheritanceBe careful with related_name and related_query_nameMulti-table inheritance Meta and multi-table inheritanceInheritance and reverse relationsSpecifying the parent link fieldProxy models QuerySets still return the model that was requestedBase class restrictionsProxy model managersDifferences between proxy inheritance and unmanaged modelsMultiple inheritanceField name “hiding” is not permittedOrganizing models in a package