  
  Thanks to Robert Coup for providing this functionality (see #4322).
  """
  from django.utils import six
  
  
  class SpatialProxy(DeferredAttribute):
      def __init__(self, klass, field):
          """
 
</s> remove class SpatialProxy(object):
 </s> add class SpatialProxy(DeferredAttribute): </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     _deferred = False
 </s> add 
from django.db.models.query_utils import DeferredAttribute
  
  Thanks to Robert Coup for providing this functionality (see #4322).
  """
from django.db.models.query_utils import DeferredAttribute
  from django.utils import six
  
  
  class SpatialProxy(DeferredAttribute):
      def __init__(self, klass, field):
          """
keep keep add keep keep keep keep keep keep
 Fixed #26207 -- Replaced dynamic classes with non-data descriptors for deferred instance loading. 
django/contrib/gis/db/models/proxy.py