  # django.core.exceptions. It is retained here for backwards compatibility
  # purposes.
  from django.core.exceptions import FieldDoesNotExist  # NOQA
  from django.db import connection, connections, router
  from django.db.models.query_utils import RegisterLookupMixin
  from django.utils import six, timezone
  from django.utils.datastructures import DictWrapper
  from django.utils.dateparse import (
      parse_date, parse_datetime, parse_duration, parse_time,
  )
 
</s> remove     InvalidQuery, Q, check_rel_lookup_compatibility, deferred_class_factory,
 </s> add     InvalidQuery, Q, check_rel_lookup_compatibility, </s> remove from django.db.backends import utils
 </s> add  </s> remove from django.db import models
 </s> add  </s> remove from django.db.models.query_utils import (
    DeferredAttribute, deferred_class_factory,
)
 </s> add  </s> remove from django.db.models.query_utils import (
    DeferredAttribute, deferred_class_factory,
)
 </s> add 
from django.db.models.query_utils import DeferredAttribute, RegisterLookupMixin
  # django.core.exceptions. It is retained here for backwards compatibility
  # purposes.
  from django.core.exceptions import FieldDoesNotExist  # NOQA
  from django.db import connection, connections, router
from django.db.models.query_utils import DeferredAttribute, RegisterLookupMixin
  from django.utils import six, timezone
  from django.utils.datastructures import DictWrapper
  from django.utils.dateparse import (
      parse_date, parse_datetime, parse_duration, parse_time,
  )
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/fields/__init__.py