  from django.utils.version import get_version
  
  
  def subclass_exception(name, parents, module, attached_to=None):
      """
      Create exception subclass. Used by ModelBase below.
  
      If 'attached_to' is supplied, the exception will be created in a way that
      allows it to be pickled, assuming the returned exception class will be added
 
</s> remove         if self.model._deferred:
            # Deferred model will not be found from the app registry. This
            # could be fixed by reconstructing the deferred model on unpickle.
            raise RuntimeError("Fields of deferred models can't be reduced")
 </s> add  </s> remove ``field_names`` are in the same order as the ``values``, so it is possible to
use ``cls(**(zip(field_names, values)))`` to instantiate the object. If all
of the model's fields are present, then ``values`` are guaranteed to be in
the order ``__init__()`` expects them. That is, the instance can be created
by ``cls(*values)``. It is possible to check if all fields are present by
consulting ``cls._deferred`` - if ``False``, then all fields have been loaded
from the database.
 </s> add ``field_names`` are in the same order as the ``values``. If all of the model's
fields are present, then ``values`` are guaranteed to be in the order
``__init__()`` expects them. That is, the instance can be created by
``cls(*values)``. If any fields are deferred, they won't appear in
``field_names``. In that case, assign a value of ``django.db.models.DEFERRED``
to each of the missing fields. </s> remove     cls = factory(model, attrs)
    return cls.__new__(cls)
 </s> add     return model.__new__(model) </s> remove     def __set__(self, instance, value):
        """
        Deferred loading attributes can be set normally (which means there will
        never be a database lookup involved.
        """
        instance.__dict__[self.field_name] = value

 </s> add 
@python_2_unicode_compatible
class Deferred(object):
    def __repr__(self):
        return str('<Deferred field>')

    def __str__(self):
        return str('<Deferred field>')

DEFERRED = Deferred()


  from django.utils.version import get_version
  
  
@python_2_unicode_compatible
class Deferred(object):
    def __repr__(self):
        return str('<Deferred field>')

    def __str__(self):
        return str('<Deferred field>')

DEFERRED = Deferred()


  def subclass_exception(name, parents, module, attached_to=None):
      """
      Create exception subclass. Used by ModelBase below.
  
      If 'attached_to' is supplied, the exception will be created in a way that
      allows it to be pickled, assuming the returned exception class will be added
keep keep add keep keep keep keep keep keep
 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 
django/db/models/base.py