  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
  from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
  from django.core.urlresolvers import resolve, get_script_prefix, NoReverseMatch, Resolver404
  from django.db.models.query import QuerySet
  from django.utils import six
  from django.utils.six.moves.urllib import parse as urlparse
 
</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                 str(self.to_representation(item)),
                str(item)
 </s> add                 six.text_type(self.to_representation(item)),
                six.text_type(item)
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
# coding: utf-8
from __future__ import unicode_literals
  from django.core.exceptions import ObjectDoesNotExist, ImproperlyConfigured
  from django.core.urlresolvers import resolve, get_script_prefix, NoReverseMatch, Resolver404
  from django.db.models.query import QuerySet
  from django.utils import six
  from django.utils.six.moves.urllib import parse as urlparse
replace replace replace replace keep keep keep keep keep
 str() -> six.text_type(). Closes #2290. 
rest_framework/relations.py