      description = getattr(view, 'description', None)
      if description is None:
          description = view.__class__.__doc__ or ''
  
      description = formatting.dedent(smart_text(description))
      if html:
          return formatting.markup_description(description)
      return description
  
  
 
</s> remove             return self._get_description_section(view, method.lower(), formatting.dedent(smart_text(method_docstring)))
 </s> add             return self._get_description_section(view, method.lower(), formatting.dedent(smart_str(method_docstring))) </s> remove         data = smart_text(data).strip()
 </s> add         data = smart_str(data).strip() </s> remove             self.fail('does_not_exist', slug_name=self.slug_field, value=smart_text(data))
 </s> add             self.fail('does_not_exist', slug_name=self.slug_field, value=smart_str(data)) </s> remove from django.utils.encoding import smart_text
 </s> add from django.utils.encoding import smart_str </s> remove from django.utils.translation import ugettext_lazy as _
 </s> add from django.utils.translation import gettext_lazy as _
    description = formatting.dedent(smart_str(description))
      description = getattr(view, 'description', None)
      if description is None:
          description = view.__class__.__doc__ or ''
  
    description = formatting.dedent(smart_str(description))
      if html:
          return formatting.markup_description(description)
      return description
  
  
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/views.py