  from django.utils.dateparse import (
      parse_date, parse_datetime, parse_duration, parse_time
  )
  from django.utils.duration import duration_string
  from django.utils.encoding import is_protected_type, smart_text
  from django.utils.formats import localize_input, sanitize_separators
  from django.utils.ipv6 import clean_ipv6_address
  from django.utils.timezone import utc
  from django.utils.translation import gettext_lazy as _
  from pytz.exceptions import InvalidTimeError
 
</s> remove from django.utils.encoding import smart_text, uri_to_iri
 </s> add from django.utils.encoding import smart_str, uri_to_iri </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 is_protected_type, smart_str
  from django.utils.dateparse import (
      parse_date, parse_datetime, parse_duration, parse_time
  )
  from django.utils.duration import duration_string
from django.utils.encoding import is_protected_type, smart_str
  from django.utils.formats import localize_input, sanitize_separators
  from django.utils.ipv6 import clean_ipv6_address
  from django.utils.timezone import utc
  from django.utils.translation import gettext_lazy as _
  from pytz.exceptions import InvalidTimeError
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/fields.py