Fixed #25928 -- Clarified precendence of USE_THOUSAND_SEPARATOR and locale formats.

This commit is contained in:
wingston sharon 2015-12-17 10:28:15 +04:00 committed by Tim Graham
parent 56c461a0d7
commit 7f218d9891
1 changed files with 3 additions and 1 deletions

View File

@ -2474,7 +2474,9 @@ Default: ``False``
A boolean that specifies whether to display numbers using a thousand separator.
When :setting:`USE_L10N` is set to ``True`` and if this is also set to
``True``, Django will use the values of :setting:`THOUSAND_SEPARATOR` and
:setting:`NUMBER_GROUPING` to format numbers.
:setting:`NUMBER_GROUPING` to format numbers unless the locale already has an
existing thousands separator. If there is a thousands separator in the locale
format, it will have higher precedence and will be applied instead.
See also :setting:`DECIMAL_SEPARATOR`, :setting:`NUMBER_GROUPING` and
:setting:`THOUSAND_SEPARATOR`.