                  six.text_type)(min_length=self.min_length)
              self.validators.append(
                  MinLengthValidator(self.min_length, message=message))
  
      def run_validation(self, data=empty):
          # Test for the empty string here so that it does not get validated,
          # and so that subclasses do not need to handle it explicitly
          # inside the `to_internal_value()` method.
          if data == '' or (self.trim_whitespace and six.text_type(data).strip() == ''):
              if not self.allow_blank:
 
</s> remove         'min_length': _('Ensure this field has at least {min_length} characters.')
 </s> add         'min_length': _('Ensure this field has at least {min_length} characters.'), </s> remove     MinValueValidator, unicode_repr, unicode_to_repr
 </s> add     MinValueValidator, ProhibitNullCharactersValidator, unicode_repr,
    unicode_to_repr
        # ProhibitNullCharactersValidator is None on Django < 2.0
        if ProhibitNullCharactersValidator is not None:
            self.validators.append(ProhibitNullCharactersValidator())

                  six.text_type)(min_length=self.min_length)
              self.validators.append(
                  MinLengthValidator(self.min_length, message=message))
  
        # ProhibitNullCharactersValidator is None on Django < 2.0
        if ProhibitNullCharactersValidator is not None:
            self.validators.append(ProhibitNullCharactersValidator())

      def run_validation(self, data=empty):
          # Test for the empty string here so that it does not get validated,
          # and so that subclasses do not need to handle it explicitly
          # inside the `to_internal_value()` method.
          if data == '' or (self.trim_whitespace and six.text_type(data).strip() == ''):
              if not self.allow_blank:
keep keep keep add keep keep keep keep keep keep
 Prohibit null characters in CharField by default (#6073)

* Implement an allow_null_bytes argument to CharField (default True)
* Switch to using native ProhibitNullCharactersValidator instead 
rest_framework/fields.py