      """
  
      def __init__(self, **kwargs):
          kwargs['read_only'] = True
          super(StringRelatedField, self).__init__(**kwargs)
  
      def to_representation(self, value):
          return six.text_type(value)
  
  
 
</s> remove         return six.text_type(value)
 </s> add         return str(value) </s> remove         super(PrimaryKeyRelatedField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs) </s> remove         super(NullBooleanField, self).__init__(**kwargs)
 </s> add         super().__init__(**kwargs) </s> remove         super(_UnvalidatedField, self).__init__(*args, **kwargs)
 </s> add         super().__init__(*args, **kwargs) </s> remove         super(HyperlinkedIdentityField, self).__init__(view_name, **kwargs)
 </s> add         super().__init__(view_name, **kwargs)
        super().__init__(**kwargs)
      """
  
      def __init__(self, **kwargs):
          kwargs['read_only'] = True
        super().__init__(**kwargs)
  
      def to_representation(self, value):
          return six.text_type(value)
  
  
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