Ticket #8233: decimal_validator.diff
File decimal_validator.diff, 540 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/__init__.py
701 701 if value is None: 702 702 return value 703 703 try: 704 if isinstance(value, float): 705 value = self.format_number(value) 704 706 return decimal.Decimal(value) 705 707 except decimal.InvalidOperation: 706 708 raise validators.ValidationError(