#15775: Can't enter scientific notation in decimal fields
------------------------------------+---------------------------
               Reporter:  gregthe1  |          Owner:  brunogola
                   Type:  Bug       |         Status:  assigned
              Milestone:            |      Component:  Forms
                Version:  1.2       |       Severity:  Normal
             Resolution:            |       Keywords:
           Triage Stage:  Accepted  |      Has patch:  1
    Needs documentation:  0         |    Needs tests:  0
Patch needs improvement:  1         |  Easy pickings:  0
                  UI/UX:  0         |
------------------------------------+---------------------------

Comment (by anonymous):

 I still don't think this is correct.  Using the patch, it doesn't work for
 1E+4.


 {{{
 >>> f = DecimalField(max_digits=10, decimal_places=1)
 >>> f.validate(Decimal('1E+4'))
 Traceback (most recent call last):
 ...
 ValidationError: [u'Ensure that there are no more than 1 decimal places.']
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15775#comment:7>
Django <https://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