#11411 closed (duplicate)
DecimalField and NaN
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | 1.0 |
Severity: | Keywords: | DecimalField, NaN | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
When save form with DecimalField which has NaN value I get exception:
Exception Type: TypeError Exception Value: bad operand type for abs(): 'str' Exception Location: /var/lib/python-support/python2.6/django/forms/fields.py in clean, line 254
Because clean method of DecimalField doesn't check that value can be 'NaN'.
I use django 1.0.2.
Attachments (1)
Change History (3)
by , 15 years ago
Attachment: | fields.diff added |
---|
comment:1 by , 15 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
duplicate of #7777