0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Improved description of USE_THOUSAND_SEPARATOR setting.

This commit is contained in:
Adam Johnson 2020-07-20 11:54:55 +01:00 committed by GitHub
parent e1e4fd707f
commit 80f92177eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2764,11 +2764,10 @@ See also :setting:`LANGUAGE_CODE`, :setting:`USE_I18N` and :setting:`USE_TZ`.
Default: ``False`` Default: ``False``
A boolean that specifies whether to display numbers using a thousand separator. 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 When set to ``True`` and :setting:`USE_L10N` is also ``True``, Django will
``True``, Django will use the values of :setting:`THOUSAND_SEPARATOR` and format numbers using the :setting:`NUMBER_GROUPING` and
:setting:`NUMBER_GROUPING` to format numbers unless the locale already has an :setting:`THOUSAND_SEPARATOR` settings. These settings may also be dictated by
existing thousands separator. If there is a thousands separator in the locale the locale, which takes precedence.
format, it will have higher precedence and will be applied instead.
See also :setting:`DECIMAL_SEPARATOR`, :setting:`NUMBER_GROUPING` and See also :setting:`DECIMAL_SEPARATOR`, :setting:`NUMBER_GROUPING` and
:setting:`THOUSAND_SEPARATOR`. :setting:`THOUSAND_SEPARATOR`.