Model class referenceLink to this heading
This document covers features of the Model class.
For more information about models, see the complete list of Model
reference guides.
AttributesLink to this heading
objectsLink to this heading
- Model.objectsLink to this definition
Each non-abstract
Modelclass must have aManagerinstance added to it. Django ensures that in your model class you have at least a defaultManagerspecified. If you don’t add your ownManager, Django will add an attributeobjectscontaining defaultManagerinstance. If you add your ownManagerinstance attribute, the default one does not appear. Consider the following example:from django.db import models class Person(models.Model): # Add manager with another name people = models.Manager()For more details on model managers see Managers and Retrieving objects.