From acaa2015274fa79aa79184e1ee824cdc791f580e Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 4 Jun 2020 09:11:37 +0200 Subject: [3.1.x] Fixed #30134 -- Ensured unlocalized numbers are string representation in templates. Backport of 9e57b1efb5205bd94462e9de35254ec5ea6eb04e from master --- docs/topics/i18n/formatting.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/topics') 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 -- cgit v1.3