          Validate that the input is a decimal number and return a Decimal
          instance.
          """
  
          data = smart_text(data).strip()
  
          if self.localize:
              data = sanitize_separators(data)
  
          if len(data) > self.MAX_STRING_LENGTH:
 
</s> remove     description = formatting.dedent(smart_text(description))
 </s> add     description = formatting.dedent(smart_str(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 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 _ </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))
        data = smart_str(data).strip()
          Validate that the input is a decimal number and return a Decimal
          instance.
          """
  
        data = smart_str(data).strip()
  
          if self.localize:
              data = sanitize_separators(data)
  
          if len(data) > self.MAX_STRING_LENGTH:
keep keep keep keep replace keep keep keep keep keep
 Fix Django 3.0 deprecations (#7074) 
rest_framework/fields.py