=====================Model class reference=====================.. currentmodule:: django.db.modelsThis document covers features of the :class:`~django.db.models.Model` class.For more information about models, see :doc:`the complete list of Modelreference guides </ref/models/index>`.Attributes==========``DoesNotExist``----------------.. exception:: Model.DoesNotExistThis exception is raised by the ORM when an expected object is not found.For example, :meth:`.QuerySet.get` will raise it when no object is foundfor the given lookups.Django provides a ``DoesNotExist`` exception as an attribute of each modelclass to identify the class of object that could not be found, allowing youto catch exceptions for a particular model class. The exception is asubclass of :exc:`django.core.exceptions.ObjectDoesNotExist`.``MultipleObjectsReturned``---------------------------.. exception:: Model.MultipleObjectsReturnedThis exception is raised by :meth:`.QuerySet.get` when multiple objects arefound for the given lookups.Django provides a ``MultipleObjectsReturned`` exception as an attribute ofeach model class to identify the class of object for which multiple objectswere found, allowing you to catch exceptions for a particular model class.The exception is a subclass of:exc:`django.core.exceptions.MultipleObjectsReturned`.``objects``-----------.. attribute:: Model.objectsEach non-abstract :class:`~django.db.models.Model` class must have a:class:`~django.db.models.Manager` instance added to it.Django ensures that in your model class you have at least adefault ``Manager`` specified. If you don't add your own ``Manager``,Django will add an attribute ``objects`` containing default:class:`~django.db.models.Manager` instance. If you add your own:class:`~django.db.models.Manager` instance attribute, the default one doesnot appear. Consider the following example::from django.db import modelsclass Person(models.Model):# Add manager with another namepeople = models.Manager()For more details on model managers see :doc:`Managers </topics/db/managers>`and :ref:`Retrieving objects <retrieving-objects>`.