  from django.db import connection, models, transaction
  from django.http import Http404
  from django.http.response import HttpResponseBase
  from django.utils.cache import cc_delim_re, patch_vary_headers
  from django.utils.encoding import smart_text
  from django.views.decorators.csrf import csrf_exempt
  from django.views.generic import View
  
  from rest_framework import exceptions, status
  from rest_framework.request import Request
 
</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 is_protected_type, smart_text
 </s> add from django.utils.encoding import is_protected_type, smart_str </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     description = formatting.dedent(smart_text(description))
 </s> add     description = formatting.dedent(smart_str(description))
from django.utils.encoding import smart_str
  from django.db import connection, models, transaction
  from django.http import Http404
  from django.http.response import HttpResponseBase
  from django.utils.cache import cc_delim_re, patch_vary_headers
from django.utils.encoding import smart_str
  from django.views.decorators.csrf import csrf_exempt
  from django.views.generic import View
  
  from rest_framework import exceptions, status
  from rest_framework.request import Request
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/views.py