  )
  from django.db.models.manager import ensure_default_manager
  from django.db.models.options import Options
  from django.db.models.query import Q
  from django.db.models.query_utils import (
      DeferredAttribute, deferred_class_factory,
  )
  from django.db.models.utils import make_model_tuple
  from django.utils import six
  from django.utils.encoding import force_str, force_text
  from django.utils.functional import curry
  from django.utils.six.moves import zip
 
</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     InvalidQuery, Q, check_rel_lookup_compatibility, deferred_class_factory,
 </s> add     InvalidQuery, Q, check_rel_lookup_compatibility, </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, InvalidQuery
 </s> add from django.db.models.query_utils import InvalidQuery
  )
  from django.db.models.manager import ensure_default_manager
  from django.db.models.options import Options
  from django.db.models.query import Q



  from django.db.models.utils import make_model_tuple
  from django.utils import six
  from django.utils.encoding import force_str, force_text
  from django.utils.functional import curry
  from django.utils.six.moves import zip
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/base.py