summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorjay20162016 <jayjay.jay20162016@gmail.com>2020-03-14 12:32:19 -0400
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-16 08:44:43 +0100
commit924c01ba095f7df9529a65c176a892a5c1624ec5 (patch)
tree3315aff6f35226bcbcea1362e9a824925235eb1a /docs
parent3857a08bdb05e30f90f56a7dd0d505ad19f4c403 (diff)
Fixed #31363 -- Added support for negative integers to intword template filter.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/humanize.txt6
-rw-r--r--docs/releases/3.1.txt5
2 files changed, 11 insertions, 0 deletions
diff --git a/docs/ref/contrib/humanize.txt b/docs/ref/contrib/humanize.txt
index edbdb136b0..8914ef8de7 100644
--- a/docs/ref/contrib/humanize.txt
+++ b/docs/ref/contrib/humanize.txt
@@ -66,6 +66,7 @@ Examples:
* ``1000000`` becomes ``1.0 million``.
* ``1200000`` becomes ``1.2 million``.
* ``1200000000`` becomes ``1.2 billion``.
+* ``-1200000000`` becomes ``-1.2 billion``.
Values up to 10^100 (Googol) are supported.
@@ -75,12 +76,17 @@ e.g. with the ``'de'`` language:
* ``1000000`` becomes ``'1,0 Million'``.
* ``1200000`` becomes ``'1,2 Millionen'``.
* ``1200000000`` becomes ``'1,2 Milliarden'``.
+* ``-1200000000`` becomes ``'-1,2 Milliarden'``.
.. versionchanged:: 3.0
All numeric values are now translated as plural, except ``1.0`` which is
translated as a singular phrase. This may be incorrect for some languages.
+.. versionchanged:: 3.1
+
+ Support for negative integers was added.
+
.. templatefilter:: naturalday
``naturalday``
diff --git a/docs/releases/3.1.txt b/docs/releases/3.1.txt
index bbde94a34e..278752db90 100644
--- a/docs/releases/3.1.txt
+++ b/docs/releases/3.1.txt
@@ -77,6 +77,11 @@ Minor features
* Added the :class:`~django.contrib.gis.db.models.functions.AsWKB` and
:class:`~django.contrib.gis.db.models.functions.AsWKT` functions.
+:mod:`django.contrib.humanize`
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+* :tfilter:`intword` template filter now supports negative integers.
+
:mod:`django.contrib.messages`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~