Problem with number format when not using L10N

8 views
Skip to first unread message

Yonel Ceruto González

unread,
Dec 3, 2013, 8:54:08 AM12/3/13
to django...@googlegroups.com

I want to use the grouping of thousands in my numeric formats.

My configuration in "settings.py" is:
USE_L10N = False
USE_THOUSAND_SEPARATOR = True
NUMBER_GROUPING = 3

Showing my numbers without the grouping of thousands.

When I check in depth why I realize that the grouping of thousands is subject to the value of the Variable settings.USE_L10N:

django/utils/numberformat.py:

def format (...):
...
use_grouping = settings.USE_L10N and settings.USE_THOUSAND_SEPARATOR

Think it would be correct to eliminate the constraint that prohibits the display grouping of thousands, if not L10N used?
Reply all
Reply to author
Forward
0 new messages