  from django.core.exceptions import ImproperlyConfigured, ObjectDoesNotExist
  from django.db.models import Manager
  from django.db.models.query import QuerySet
  from django.urls import NoReverseMatch, Resolver404, get_script_prefix, resolve
  from django.utils.encoding import smart_text, uri_to_iri
  from django.utils.translation import gettext_lazy as _
  
  from rest_framework.fields import (
      Field, empty, get_attribute, is_simple_callable, iter_options
  )
 
</s> remove from django.utils.encoding import is_protected_type, smart_text
 </s> add from django.utils.encoding import is_protected_type, smart_str </s> remove from django.utils.translation import ugettext_lazy as _
 </s> add from django.utils.translation import gettext_lazy as _ </s> remove from django.utils.encoding import smart_text
 </s> add from django.utils.encoding import smart_str </s> remove from django.utils.encoding import smart_text
 </s> add from django.utils.encoding import smart_str </s> remove     description = formatting.dedent(smart_text(description))
 </s> add     description = formatting.dedent(smart_str(description))
from django.utils.encoding import smart_str, 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.urls import NoReverseMatch, Resolver404, get_script_prefix, resolve
from django.utils.encoding import smart_str, uri_to_iri
  from django.utils.translation import gettext_lazy as _
  
  from rest_framework.fields import (
      Field, empty, get_attribute, is_simple_callable, iter_options
  )
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/relations.py