diff options
| author | Claude Paroz <claude@2xlibre.net> | 2020-06-04 09:11:37 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-06-04 11:00:40 +0200 |
| commit | acaa2015274fa79aa79184e1ee824cdc791f580e (patch) | |
| tree | 52f296cf336a53bf1e44fcc2b99821913fdea537 /docs | |
| parent | 810e656aca21a2389c1666e1cb132f6dd02a1e4b (diff) | |
[3.1.x] Fixed #30134 -- Ensured unlocalized numbers are string representation in templates.
Backport of 9e57b1efb5205bd94462e9de35254ec5ea6eb04e from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/3.1.txt | 3 | ||||
| -rw-r--r-- | docs/topics/i18n/formatting.txt | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt index c489f9cd89..ba96ea670f 100644 --- a/docs/releases/3.1.txt +++ b/docs/releases/3.1.txt @@ -677,6 +677,9 @@ Miscellaneous * The undocumented ``django.contrib.postgres.fields.jsonb.JsonAdapter`` class is removed. +* The :ttag:`{% localize off %} <localize>` tag and :tfilter:`unlocalize` + filter no longer respect :setting:`DECIMAL_SEPARATOR` setting. + .. _deprecated-features-3.1: Features deprecated in 3.1 diff --git a/docs/topics/i18n/formatting.txt b/docs/topics/i18n/formatting.txt index 3dbb10f2dc..f58ff0e963 100644 --- a/docs/topics/i18n/formatting.txt +++ b/docs/topics/i18n/formatting.txt @@ -142,6 +142,9 @@ To force localization of a single value, use :tfilter:`localize`. To control localization over a large section of a template, use the :ttag:`localize` template tag. +Returns a string representation for unlocalized numbers (``int``, ``float``, +or ``Decimal``). + .. _custom-format-files: Creating custom format files |
