#11411: DecimalField and NaN
---------------------------------+------------------------------------------
 Reporter:  [email protected]  |       Owner:  nobody    
   Status:  new                  |   Milestone:  1.0.3     
Component:  Forms                |     Version:  1.0       
 Keywords:  DecimalField,NaN     |       Stage:  Unreviewed
Has_patch:  1                    |  
---------------------------------+------------------------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11411>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to