          """
          to_internal_value() is expected to return a dict, but subclasses may
          return application specific type.
          """
          class Point(object):
              def __init__(self, srid, x, y):
                  self.srid = srid
                  self.coords = (x, y)
  
          # Declares a serializer that converts data into an object
 
</s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove class BoundField(object):
 </s> add class BoundField: </s> remove class UniqueTogetherValidator(object):
 </s> add class UniqueTogetherValidator: </s> remove         @python_2_unicode_compatible
        class MockLazyStr(object):
 </s> add         class MockLazyStr: </s> remove         expected = {'target': [u'one to one pk source with this target already exists.']}
 </s> add         expected = {'target': ['one to one pk source with this target already exists.']}
        class Point:
          """
          to_internal_value() is expected to return a dict, but subclasses may
          return application specific type.
          """
        class Point:
              def __init__(self, srid, x, y):
                  self.srid = srid
                  self.coords = (x, y)
  
          # Declares a serializer that converts data into an object
keep keep keep keep replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
tests/test_serializer.py