#14053: django.utils.formats.localize() misses support for long
---------------------------------------------------+------------------------
Reporter: David Danier <[email protected]> | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: 1.2
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------------------------------+------------------------
Seems like the isinstance(value, (decimal.Decimal, float, int))-check on
line 83 fails to check for long values.
Simple test (german, USE_THOUSAND_SEPARATOR is True):
{{{
In [1]: from django.utils import formats
In [2]: formats.localize(10000)
Out[2]: u'10,000'
In [3]: formats.localize(10000L)
Out[3]: 10000L
}}}
Patch follows
--
Ticket URL: <http://code.djangoproject.com/ticket/14053>
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.