Ticket #11411: fields.diff
File fields.diff, 428 bytes (added by , 15 years ago) |
---|
-
fields.py
old new 245 245 if not self.required and value in EMPTY_VALUES: 246 246 return None 247 247 value = smart_str(value).strip() 248 if value == 'NaN': 249 raise ValidationError(self.error_messages['invalid']) 248 250 try: 249 251 value = Decimal(value) 250 252 except DecimalException: