              cutoff_text=self.html_cutoff_text
          )
  
      def display_value(self, instance):
          return six.text_type(instance)
  
  
  class StringRelatedField(RelatedField):
      """
      A read only field that represents its targets using their
 
</s> remove         return unicode_to_repr(representation.field_repr(self))
 </s> add         return representation.field_repr(self) </s> remove class EndpointEnumerator(object):
 </s> add class EndpointEnumerator: </s> remove @python_2_unicode_compatible
 </s> add  </s> remove class CreateOnlyDefault(object):
 </s> add class CreateOnlyDefault: </s> remove class BoundField(object):
 </s> add class BoundField:
        return str(instance)
              cutoff_text=self.html_cutoff_text
          )
  
      def display_value(self, instance):
        return str(instance)
  
  
  class StringRelatedField(RelatedField):
      """
      A read only field that represents its targets using their
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/relations.py