summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-11 13:40:04 -0500
committerTim Graham <timograham@gmail.com>2019-02-11 13:46:03 -0500
commit392e040647403fc8007708d52ce01d915b014849 (patch)
tree7f0e85a1404c5787d441f1e2909b608caa410df6
parent6d0a3002ed727fc1ce54d58226eb0dddbb2f4e31 (diff)
[2.0.x] Fixed #30177 -- Fixed format_number() crash with over 200 digits.
There are existing test failures. The incorrect patch was applied in 1f42f82566c9d2d73aff1c42790d6b1b243f7676.
-rw-r--r--django/utils/numberformat.py2
-rw-r--r--docs/releases/2.0.13.txt13
-rw-r--r--docs/releases/index.txt1
3 files changed, 15 insertions, 1 deletions
diff --git a/django/utils/numberformat.py b/django/utils/numberformat.py
index 5814c454a4..d8157fce93 100644
--- a/django/utils/numberformat.py
+++ b/django/utils/numberformat.py
@@ -36,7 +36,7 @@ def format(number, decimal_sep, decimal_pos=None, grouping=0, thousand_sep='',
# Format the coefficient.
coefficient = format(
coefficient, decimal_sep, decimal_pos, grouping,
- thousand_sep, force_grouping, use_l10n,
+ thousand_sep, force_grouping,
)
return '{}e{}'.format(coefficient, exponent)
else:
diff --git a/docs/releases/2.0.13.txt b/docs/releases/2.0.13.txt
new file mode 100644
index 0000000000..2f9fb273fc
--- /dev/null
+++ b/docs/releases/2.0.13.txt
@@ -0,0 +1,13 @@
+===========================
+Django 2.0.13 release notes
+===========================
+
+*February 12, 2019*
+
+Django 2.0.13 fixes a regression in 2.0.12/2.0.11.
+
+Bugfixes
+========
+
+* Fixed crash in ``django.utils.numberformat.format_number()`` when the number
+ has over 200 digits (:ticket:`30177`).
diff --git a/docs/releases/index.txt b/docs/releases/index.txt
index 20733721a9..6dafcb075f 100644
--- a/docs/releases/index.txt
+++ b/docs/releases/index.txt
@@ -25,6 +25,7 @@ versions of the documentation contain the release notes for any later releases.
.. toctree::
:maxdepth: 1
+ 2.0.13
2.0.12
2.0.11
2.0.10