Ticket #5355: fields.py.patch
File fields.py.patch, 441 bytes (added by , 17 years ago) |
---|
-
fields.py
185 185 super(DecimalField, self).clean(value) 186 186 if not self.required and value in EMPTY_VALUES: 187 187 return None 188 if isinstance(value, Decimal): 189 return value 188 190 value = value.strip() 189 191 try: 190 192 value = Decimal(value)