              detail = [detail]
          self.detail = _force_text_recursive(detail)
  
      def __str__(self):
          return str(self.detail)
  
  
  class ParseError(APIException):
      status_code = status.HTTP_400_BAD_REQUEST
      default_detail = _('Malformed request.')
 
</s> remove                 str(self.to_representation(item)),
                str(item)
 </s> add                 six.text_type(self.to_representation(item)),
                six.text_type(item) </s> remove                 str(item_representation),
                str(item) + ' - ' + str(item_representation)
 </s> add                 six.text_type(item_representation),
                six.text_type(item) + ' - ' + six.text_type(item_representation) </s> remove from django.utils.encoding import smart_text
from rest_framework.fields import get_attribute, empty, Field
from rest_framework.reverse import reverse
from rest_framework.utils import html
 </s> add # coding: utf-8
from __future__ import unicode_literals
        return six.text_type(self.detail)
              detail = [detail]
          self.detail = _force_text_recursive(detail)
  
      def __str__(self):
        return six.text_type(self.detail)
  
  
  class ParseError(APIException):
      status_code = status.HTTP_400_BAD_REQUEST
      default_detail = _('Malformed request.')
keep keep keep keep replace keep keep keep keep keep
 str() -> six.text_type(). Closes #2290. 
rest_framework/exceptions.py