  from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
  from django.db.models import Manager
  from django.db.models.query import QuerySet
  from django.utils import six
  from django.utils.encoding import python_2_unicode_compatible, smart_text
  from django.utils.six.moves.urllib import parse as urlparse
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework.compat import (
      NoReverseMatch, Resolver404, get_script_prefix, resolve
 
</s>
from django.utils.encoding import (
    python_2_unicode_compatible, smart_text, uri_to_iri
)
  from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
  from django.db.models import Manager
  from django.db.models.query import QuerySet
  from django.utils import six
from django.utils.encoding import (
    python_2_unicode_compatible, smart_text, uri_to_iri
)
  from django.utils.six.moves.urllib import parse as urlparse
  from django.utils.translation import ugettext_lazy as _
  
  from rest_framework.compat import (
      NoReverseMatch, Resolver404, get_script_prefix, resolve
keep keep keep keep replace keep keep keep keep keep
 add URL path unquote to HyperlinkedRelatedField.to_internal_value
rest_framework/relations.py