              message = self.error_messages['max_value'].format(max_value=self.max_value)
              self.validators.append(MaxValueValidator(max_value, message=message))
          if self.min_value is not None:
              message = self.error_messages['min_value'].format(min_value=self.min_value)
              self.validators.append(MinValueValidator(min_value, message=message))
  
      def to_internal_value(self, data):
          """
          Validates that the input is a decimal number. Returns a Decimal
          instance. Returns None for empty values. Ensures that there are no more
 
</s> remove             self.validators.append(MaxValueValidator(max_value, message=message))
 </s> add             self.validators.append(MaxValueValidator(self.max_value, message=message)) </s> remove             integer_field = serializers.IntegerField(max_value=10)
            char_field = serializers.CharField(required=False)
 </s> add             integer_field = serializers.IntegerField(
                min_value=1, max_value=1000
            )
            char_field = serializers.CharField(
                required=False, min_length=3, max_length=40
            ) </s> remove                         'label': 'Char field'
 </s> add                         'label': 'Char field',
                        'min_length': 3,
                        'max_length': 40 </s> remove                         'label': 'Integer field'
 </s> add                         'label': 'Integer field',
                        'min_value': 1,
                        'max_value': 1000,

            self.validators.append(MinValueValidator(self.min_value, message=message))
              message = self.error_messages['max_value'].format(max_value=self.max_value)
              self.validators.append(MaxValueValidator(max_value, message=message))
          if self.min_value is not None:
              message = self.error_messages['min_value'].format(min_value=self.min_value)
            self.validators.append(MinValueValidator(self.min_value, message=message))
  
      def to_internal_value(self, data):
          """
          Validates that the input is a decimal number. Returns a Decimal
          instance. Returns None for empty values. Ensures that there are no more
keep keep keep keep replace keep keep keep keep keep
 Validator-fix, added min/max fields to test_metadata 
rest_framework/fields.py