#15775: Can't enter scientific notation in decimal fields
---------------------------+------------------------------
Reporter: gregthe1 | Owner: nobody
Type: Uncategorized | Status: new
Milestone: | Component: Uncategorized
Version: 1.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 |
---------------------------+------------------------------
Here is an example:
{{{
>>> from django.forms import DecimalField
>>> f = DecimalField(max_digits=10, decimal_places=1)
>>> f.validate(Decimal('1E+2'))
Traceback (most recent call last):
...
ValidationError: [u'Ensure that there are no more than 1 decimal places.']
}}}
Also if I try upping the max_digits and decimal_places to something like
20, and 13, I get this error:
{{{
quantize result has too many digits for current context
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/15775>
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.