  from django.conf.urls import url
  from django.core.exceptions import ImproperlyConfigured
  from django.utils.datastructures import MultiValueDict
  
  from rest_framework import serializers
  from rest_framework.fields import empty
 
</s> remove from django.utils.encoding import python_2_unicode_compatible, smart_text
 </s> add from django.utils.encoding import (
    python_2_unicode_compatible, smart_text, uri_to_iri
) </s> remove         assert response.data == [{"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"}]
 </s> add         assert response.data == [
            {"url": "http://testserver/example/notes/123/", "uuid": "123", "text": "foo bar"},
            {"url": "http://testserver/example/notes/a%20b/", "uuid": "a b", "text": "baz qux"},
        ]
from django.test import override_settings
  from django.conf.urls import url
  from django.core.exceptions import ImproperlyConfigured
from django.test import override_settings
  from django.utils.datastructures import MultiValueDict
  
  from rest_framework import serializers
  from rest_framework.fields import empty
keep add keep keep keep keep
 add URL path unquote to HyperlinkedRelatedField.to_internal_value 
tests/test_relations.py