{"title":"Django 1.11.2 release notes","version":"dev","locale":"en","docname":"releases/1.11.2","url":"/en/dev/releases/1.11.2/","canonical":"https://djangodocs.dev/en/dev/releases/1.11.2/","summary":"Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the latest string translations from Transifex are incorporated.","html":"<h1>Django 1.11.2 release notes<a class=\"heading-anchor\" href=\"#django-1-11-2-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>June 1, 2017</em></p>\n<p>Django 1.11.2 adds a minor feature and fixes several bugs in 1.11.1. Also, the\nlatest string translations from Transifex are incorporated.</p>\n<section id=\"minor-feature\">\n<h2>Minor feature<a class=\"heading-anchor\" href=\"#minor-feature\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>The new <code class=\"docutils literal notranslate\">LiveServerTestCase.port</code> attribute reallows the use case of binding\nto a specific port following the <a class=\"reference internal\" href=\"/en/dev/releases/1.11/#liveservertestcase-port-zero-change\"><span class=\"std std-ref\">bind to port zero</span></a> change in Django 1.11.</p>\n</section>\n<section id=\"bugfixes\">\n<h2>Bugfixes<a class=\"heading-anchor\" href=\"#bugfixes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<ul class=\"simple\">\n<li><p>Added detection for GDAL 2.1 and 2.0, and removed detection for unsupported\nversions 1.7 and 1.8 (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28181\">#28181</a>).</p></li>\n<li><p>Changed <code class=\"docutils literal notranslate\">contrib.gis</code> to raise <code class=\"docutils literal notranslate\">ImproperlyConfigured</code> rather than\n<code class=\"docutils literal notranslate\">GDALException</code> if <code class=\"docutils literal notranslate\">gdal</code> isn’t installed, to allow third-party apps to\ncatch that exception (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28178\">#28178</a>).</p></li>\n<li><p>Fixed <code class=\"docutils literal notranslate\">django.utils.http.is_safe_url()</code> crash on invalid IPv6 URLs\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28142\">#28142</a>).</p></li>\n<li><p>Fixed regression causing pickling of model fields to crash (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28188\">#28188</a>).</p></li>\n<li><p>Fixed <code class=\"docutils literal notranslate\">django.contrib.auth.authenticate()</code> when multiple authentication\nbackends don’t accept a positional <code class=\"docutils literal notranslate\">request</code> argument (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28207\">#28207</a>).</p></li>\n<li><p>Fixed introspection of index field ordering on PostgreSQL (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28197\">#28197</a>).</p></li>\n<li><p>Fixed a regression where <code class=\"docutils literal notranslate\">Model._state.adding</code> wasn’t set correctly on\nmulti-table inheritance parent models after saving a child model\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28210\">#28210</a>).</p></li>\n<li><p>Allowed <code class=\"docutils literal notranslate\">DjangoJSONEncoder</code> to serialize\n<code class=\"docutils literal notranslate\">django.utils.deprecation.CallableBool</code> (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28230\">#28230</a>).</p></li>\n<li><p>Relaxed the validation added in Django 1.11 of the fields in the <code class=\"docutils literal notranslate\">defaults</code>\nargument of <code class=\"docutils literal notranslate\">QuerySet.get_or_create()</code> and <code class=\"docutils literal notranslate\">update_or_create()</code> to\nreallow settable model properties (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28222\">#28222</a>).</p></li>\n<li><p>Fixed <code class=\"docutils literal notranslate\">MultipleObjectMixin.paginate_queryset()</code> crash on Python 2 if the\n<code class=\"docutils literal notranslate\">InvalidPage</code> message contains non-ASCII (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28204\">#28204</a>).</p></li>\n<li><p>Prevented <code class=\"docutils literal notranslate\">Subquery</code> from adding an unnecessary <code class=\"docutils literal notranslate\">CAST</code> which resulted in\ninvalid SQL (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28199\">#28199</a>).</p></li>\n<li><p>Corrected detection of GDAL 2.1 on Windows (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28181\">#28181</a>).</p></li>\n<li><p>Made date-based generic views return a 404 rather than crash when given an\nout of range date (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28209\">#28209</a>).</p></li>\n<li><p>Fixed a regression where <code class=\"docutils literal notranslate\">file_move_safe()</code> crashed when moving files to a\nCIFS mount (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28170\">#28170</a>).</p></li>\n<li><p>Moved the <code class=\"docutils literal notranslate\">ImageField</code> file extension validation added in Django 1.11 from\nthe model field to the form field to reallow the use case of storing images\nwithout an extension (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/28242\">#28242</a>).</p></li>\n</ul>\n</section>","rootId":"django-1-11-2-release-notes","toc":[{"title":"Minor feature","anchor":"minor-feature","children":[]},{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/1.11.3","title":"Django 1.11.3 release notes","url":"/en/dev/releases/1.11.3/"},"next":{"docname":"releases/1.11.1","title":"Django 1.11.1 release notes","url":"/en/dev/releases/1.11.1/"},"formats":{"html":"/en/dev/releases/1.11.2/","markdown":"/en/dev/releases/1.11.2.md","json":"/en/dev/releases/1.11.2.json"},"source":"https://github.com/django/django/blob/main/docs/releases/1.11.2.txt","official":"https://docs.djangoproject.com/en/dev/releases/1.11.2/","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","2.0","1.11"],"inLocales":["en"]}