          ] for k, errors in error_dict.items()
      }
  
  
  class CreateOnlyDefault(object):
      """
      This class may be used to provide default values that are only used
      for create operations, but that do not return any value for update
      operations.
      """
 
</s> remove @python_2_unicode_compatible
class PKOnlyObject(object):
 </s> add class PKOnlyObject: </s> remove         if value is None or value is '':
 </s> add         if value is None or value == '': </s> remove         return unicode_to_repr(representation.field_repr(self))
 </s> add         return representation.field_repr(self) </s> remove class Empty(object):
 </s> add class Empty: </s> remove         return unicode_to_repr(representation.serializer_repr(self, indent=1))
 </s> add         return representation.serializer_repr(self, indent=1)
class CreateOnlyDefault:
          ] for k, errors in error_dict.items()
      }
  
  
class CreateOnlyDefault:
      """
      This class may be used to provide default values that are only used
      for create operations, but that do not return any value for update
      operations.
      """
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> 
rest_framework/fields.py