                      skip.add(field.attname)
              if skip:
                  if self.model._meta.pk.attname in skip:
                      raise InvalidQuery('Raw query must include the primary key')
                  model_cls = deferred_class_factory(self.model, skip)
              else:
                  model_cls = self.model
              fields = [self.model_fields.get(c) for c in self.columns]
              converters = compiler.get_converters([
                  f.get_col(f.model._meta.db_table) if f else None for f in fields
              ])
              for values in query:
 
</s> remove     def get_deferred_cls(self, klass_info, init_list):
        model_cls = klass_info['model']
        if len(init_list) != len(model_cls._meta.concrete_fields):
            init_set = set(init_list)
            skip = [
                f.attname for f in model_cls._meta.concrete_fields
                if f.attname not in init_set
            ]
            model_cls = deferred_class_factory(model_cls, skip)
        return model_cls

 </s> add  </s> remove         if len(init_list) != len(model_cls._meta.concrete_fields):
            init_set = set(init_list)
            skip = [f.attname for f in model_cls._meta.concrete_fields
                    if f.attname not in init_set]
            model_cls = deferred_class_factory(model_cls, skip)
 </s> add  </s> remove         if cls._deferred:
            new = cls(**dict(zip(field_names, values)))
        else:
            new = cls(*values)
 </s> add         if len(values) != len(cls._meta.concrete_fields):
            values = list(values)
            values.reverse()
            values = [values.pop() if f.attname in field_names else DEFERRED for f in cls._meta.concrete_fields]
        new = cls(*values) </s> remove         elif self._deferred:
            deferred_fields = self.get_deferred_fields()
 </s> add         elif deferred_fields:
            model_cls = self.model
                      skip.add(field.attname)
              if skip:
                  if self.model._meta.pk.attname in skip:
                      raise InvalidQuery('Raw query must include the primary key')
            model_cls = self.model
            model_cls = self.model
            model_cls = self.model
              fields = [self.model_fields.get(c) for c in self.columns]
              converters = compiler.get_converters([
                  f.get_col(f.model._meta.db_table) if f else None for f in fields
              ])
              for values in query:
keep keep keep keep replace replace replace keep keep keep keep keep
 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 
django/db/models/query.py