          # keywords, or default.
  
          for field in fields_iter:
              is_related_object = False
              # This slightly odd construct is so that we can access any
              # data-descriptor object (DeferredAttribute) without triggering its
              # __get__ method.
              if (field.attname not in kwargs and
                      (isinstance(self.__class__.__dict__.get(field.attname), DeferredAttribute) or
                          field.column is None)):
                  # This field will be populated on request.
                  continue
              if kwargs:
                  if isinstance(field.remote_field, ForeignObjectRel):
                      try:
                          # Assume object instance was passed in.
 
</s> remove                 setattr(self, field.attname, val)
 </s> add                 if val is not DEFERRED:
                    setattr(self, field.attname, val) </s> remove                 setattr(self, field.name, rel_obj)
 </s> add                 if rel_obj is not DEFERRED:
                    setattr(self, field.name, rel_obj) </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 
            # Virtual field
            if field.attname not in kwargs and field.column is None:
          # keywords, or default.
  
          for field in fields_iter:
              is_related_object = False
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
            # Virtual field
            if field.attname not in kwargs and field.column is None:
                  continue
              if kwargs:
                  if isinstance(field.remote_field, ForeignObjectRel):
                      try:
                          # Assume object instance was passed in.
keep keep keep keep replace replace replace replace replace replace replace keep keep keep keep keep
 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 
django/db/models/base.py