          'max_decimal_places': _('Ensure that there are no more than {max_decimal_places} decimal places.'),
          'max_whole_digits': _('Ensure that there are no more than {max_whole_digits} digits before the decimal point.')
      }
  
      def __init__(self, max_value=None, min_value=None, max_digits=None, decimal_places=None, **kwargs):
          self.max_value, self.min_value = max_value, min_value
          self.max_digits, self.max_decimal_places = max_digits, decimal_places
          super(DecimalField, self).__init__(**kwargs)
          if max_value is not None:
              self.validators.append(validators.MaxValueValidator(max_value))
          if min_value is not None:
              self.validators.append(validators.MinValueValidator(min_value))
 
</s> remove class DefaultObjectSerializer(serializers.Field):
 </s> add class DefaultObjectSerializer(serializers.ReadOnlyField): </s> remove         return value
 </s> add         raise NotImplementedError('to_primative() must be implemented.') </s> remove                          f['decimal'] < search_decimal]
 </s> add                          Decimal(f['decimal']) < search_decimal] </s> remove             {'id': obj.id, 'text': obj.text, 'decimal': obj.decimal, 'date': obj.date}
 </s> add             {'id': obj.id, 'text': obj.text, 'decimal': str(obj.decimal), 'date': obj.date} </s> remove         return data
 </s> add         raise NotImplementedError('to_native() must be implemented.')
    def __init__(self, max_digits, decimal_places, coerce_to_string=True, max_value=None, min_value=None, **kwargs):
        self.max_digits = max_digits
        self.decimal_places = decimal_places
        self.coerce_to_string = coerce_to_string
          'max_decimal_places': _('Ensure that there are no more than {max_decimal_places} decimal places.'),
          'max_whole_digits': _('Ensure that there are no more than {max_whole_digits} digits before the decimal point.')
      }
  
    def __init__(self, max_digits, decimal_places, coerce_to_string=True, max_value=None, min_value=None, **kwargs):
        self.max_digits = max_digits
        self.decimal_places = decimal_places
        self.coerce_to_string = coerce_to_string
    def __init__(self, max_digits, decimal_places, coerce_to_string=True, max_value=None, min_value=None, **kwargs):
        self.max_digits = max_digits
        self.decimal_places = decimal_places
        self.coerce_to_string = coerce_to_string
    def __init__(self, max_digits, decimal_places, coerce_to_string=True, max_value=None, min_value=None, **kwargs):
        self.max_digits = max_digits
        self.decimal_places = decimal_places
        self.coerce_to_string = coerce_to_string
          super(DecimalField, self).__init__(**kwargs)
          if max_value is not None:
              self.validators.append(validators.MaxValueValidator(max_value))
          if min_value is not None:
              self.validators.append(validators.MinValueValidator(min_value))
keep keep keep keep replace replace replace keep keep keep keep keep
 NotImplemented stubs for Field, and DecimalField improvements 
rest_framework/fields.py