#14053 closed (fixed)
django.utils.formats.localize() misses support for long
Description ¶
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
Change History (5)
by , 15 years ago
Attachment: | django_localize_long_r13459.diff added |
---|
comment:1 by , 15 years ago
Has patch: | set |
---|
comment:2 by , 15 years ago
Component: | Uncategorized → Internationalization |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 15 years ago
Note:
See TracTickets
for help on using tickets.
Allow localize to handle long values