      Prefetch, Q, QuerySet, prefetch_related_objects,
  )
  
  # Imports that would create circular imports if sorted
  from django.db.models.base import Model  # NOQA isort:skip
  from django.db.models.fields.related import (  # NOQA isort:skip
      ForeignKey, ForeignObject, OneToOneField, ManyToManyField,
      ManyToOneRel, ManyToManyRel, OneToOneRel,
  )
  
 
</s> remove from django.db.models.query_utils import RegisterLookupMixin
 </s> add from django.db.models.query_utils import DeferredAttribute, RegisterLookupMixin </s> remove     InvalidQuery, Q, check_rel_lookup_compatibility, deferred_class_factory,
 </s> add     InvalidQuery, Q, check_rel_lookup_compatibility, </s> remove from django.db.models.query_utils import (
    DeferredAttribute, deferred_class_factory,
)
 </s> add  </s> remove from django.utils.encoding import force_str, force_text
 </s> add from django.utils.encoding import (
    force_str, force_text, python_2_unicode_compatible,
) </s> remove from django.db.models.query_utils import DeferredAttribute, InvalidQuery
 </s> add from django.db.models.query_utils import InvalidQuery
from django.db.models.base import DEFERRED, Model  # NOQA isort:skip
      Prefetch, Q, QuerySet, prefetch_related_objects,
  )
  
  # Imports that would create circular imports if sorted
from django.db.models.base import DEFERRED, Model  # NOQA isort:skip
  from django.db.models.fields.related import (  # NOQA isort:skip
      ForeignKey, ForeignObject, OneToOneField, ManyToManyField,
      ManyToOneRel, ManyToManyRel, OneToOneRel,
  )
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 
django/db/models/__init__.py