2019-01-08 21:57:22 +08:00
|
|
|
==========================
|
|
|
|
Django 2.1.6 release notes
|
|
|
|
==========================
|
|
|
|
|
2019-02-07 22:46:53 +08:00
|
|
|
*February 11, 2019*
|
2019-01-08 21:57:22 +08:00
|
|
|
|
2019-02-07 22:46:53 +08:00
|
|
|
Django 2.1.6 fixes a security issue and a bug in 2.1.5.
|
2019-01-08 21:57:22 +08:00
|
|
|
|
2019-02-11 18:08:45 +08:00
|
|
|
CVE-2019-6975: Memory exhaustion in ``django.utils.numberformat.format()``
|
|
|
|
--------------------------------------------------------------------------
|
|
|
|
|
|
|
|
If ``django.utils.numberformat.format()`` -- used by ``contrib.admin`` as well
|
2019-06-21 13:07:23 +08:00
|
|
|
as the ``floatformat``, ``filesizeformat``, and ``intcomma`` templates filters
|
|
|
|
-- received a ``Decimal`` with a large number of digits or a large exponent, it
|
|
|
|
could lead to significant memory usage due to a call to ``'{:f}'.format()``.
|
2019-02-11 18:08:45 +08:00
|
|
|
|
|
|
|
To avoid this, decimals with more than 200 digits are now formatted using
|
|
|
|
scientific notation.
|
|
|
|
|
2019-01-08 21:57:22 +08:00
|
|
|
Bugfixes
|
|
|
|
========
|
|
|
|
|
2019-01-11 18:13:31 +08:00
|
|
|
* Made the ``obj`` argument of ``InlineModelAdmin.has_add_permission()``
|
|
|
|
optional to restore backwards compatibility with third-party code that
|
|
|
|
doesn't provide it (:ticket:`30097`).
|