  
          data = smart_text(data).strip()
          if len(data) > self.MAX_STRING_LENGTH:
              self.fail('max_string_length')
  
          try:
              value = decimal.Decimal(data)
          except decimal.DecimalException:
 
</s> remove     def __init__(self, max_digits, decimal_places, coerce_to_string=None, max_value=None, min_value=None, **kwargs):
 </s> add     def __init__(self, max_digits, decimal_places, coerce_to_string=None, max_value=None, min_value=None,
                 localize=False, **kwargs):
        if self.localize:
            data = sanitize_separators(data)

  
          data = smart_text(data).strip()
        if self.localize:
            data = sanitize_separators(data)

          if len(data) > self.MAX_STRING_LENGTH:
              self.fail('max_string_length')
  
          try:
              value = decimal.Decimal(data)
          except decimal.DecimalException:
keep add keep keep keep keep keep keep
 Add localize keyword argument to `DecimalField` (#4233)

Add `localize` keyword argument for DecimalField 
rest_framework/fields.py