{"title":"Django 2.1.6 release notes","version":"dev","locale":"en","docname":"releases/2.1.6","url":"/en/dev/releases/2.1.6/","canonical":"https://djangodocs.dev/en/dev/releases/2.1.6/","summary":"Django 2.1.6 fixes a security issue and a bug in 2.1.5. If django.utils.numberformat.format() – used by contrib.admin as well as the floatformat…","html":"<h1>Django 2.1.6 release notes<a class=\"heading-anchor\" href=\"#django-2-1-6-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>February 11, 2019</em></p>\n<p>Django 2.1.6 fixes a security issue and a bug in 2.1.5.</p>\n<section id=\"cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format\">\n<h2>CVE-2019-6975: Memory exhaustion in <code class=\"docutils literal notranslate\">django.utils.numberformat.format()</code><a class=\"heading-anchor\" href=\"#cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>If <code class=\"docutils literal notranslate\">django.utils.numberformat.format()</code> – used by <code class=\"docutils literal notranslate\">contrib.admin</code> as well\nas the <code class=\"docutils literal notranslate\">floatformat</code>, <code class=\"docutils literal notranslate\">filesizeformat</code>, and <code class=\"docutils literal notranslate\">intcomma</code> templates filters\n– received a <code class=\"docutils literal notranslate\">Decimal</code> with a large number of digits or a large exponent, it\ncould lead to significant memory usage due to a call to <code class=\"docutils literal notranslate\">'{:f}'.format()</code>.</p>\n<p>To avoid this, decimals with more than 200 digits are now formatted using\nscientific notation.</p>\n<section id=\"bugfixes\">\n<h3>Bugfixes<a class=\"heading-anchor\" href=\"#bugfixes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h3>\n<ul class=\"simple\">\n<li><p>Made the <code class=\"docutils literal notranslate\">obj</code> argument of <code class=\"docutils literal notranslate\">InlineModelAdmin.has_add_permission()</code>\noptional to restore backwards compatibility with third-party code that\ndoesn’t provide it (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/30097\">#30097</a>).</p></li>\n</ul>\n</section>\n</section>","rootId":"django-2-1-6-release-notes","toc":[{"title":"CVE-2019-6975: Memory exhaustion in django.utils.numberformat.format()","anchor":"cve-2019-6975-memory-exhaustion-in-django-utils-numberformat-format","children":[{"title":"Bugfixes","anchor":"bugfixes","children":[]}]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/2.1.7","title":"Django 2.1.7 release notes","url":"/en/dev/releases/2.1.7/"},"next":{"docname":"releases/2.1.5","title":"Django 2.1.5 release notes","url":"/en/dev/releases/2.1.5/"},"formats":{"html":"/en/dev/releases/2.1.6/","markdown":"/en/dev/releases/2.1.6.md","json":"/en/dev/releases/2.1.6.json"},"source":"https://github.com/django/django/blob/main/docs/releases/2.1.6.txt","official":"https://docs.djangoproject.com/en/dev/releases/2.1.6/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1"],"inLocales":["en"]}