{"title":"Django 1.8.5 release notes","version":"dev","locale":"en","docname":"releases/1.8.5","url":"/en/dev/releases/1.8.5/","canonical":"https://djangodocs.dev/en/dev/releases/1.8.5/","summary":"Django 1.8.5 fixes several bugs in 1.8.4. Made the development server’s autoreload more robust (#24704).","html":"<h1>Django 1.8.5 release notes<a class=\"heading-anchor\" href=\"#django-1-8-5-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>October 3, 2015</em></p>\n<p>Django 1.8.5 fixes several bugs in 1.8.4.</p>\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>Made the development server’s autoreload more robust (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/24704\">#24704</a>).</p></li>\n<li><p>Fixed <code class=\"docutils literal notranslate\">AssertionError</code> in some delete queries with a model containing a\nfield that is both a foreign and primary key (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/24951\">#24951</a>).</p></li>\n<li><p>Fixed <code class=\"docutils literal notranslate\">AssertionError</code> in some complex queries (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/24525\">#24525</a>).</p></li>\n<li><p>Fixed a migrations crash with <code class=\"docutils literal notranslate\">GenericForeignKey</code> (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25040\">#25040</a>).</p></li>\n<li><p>Made <code class=\"docutils literal notranslate\">translation.override()</code> clear the overridden language when a\ntranslation isn’t initially active (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25295\">#25295</a>).</p></li>\n<li><p>Fixed crash when using a value in <code class=\"docutils literal notranslate\">ModelAdmin.list_display</code> that clashed\nwith a reverse field on the model (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25299\">#25299</a>).</p></li>\n<li><p>Fixed autocompletion for options of non-<code class=\"docutils literal notranslate\">argparse</code> management commands\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25372\">#25372</a>).</p></li>\n<li><p>Alphabetized ordering of imports in <code class=\"docutils literal notranslate\">from django.db import migrations,\nmodels</code> statement in newly created migrations (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25384\">#25384</a>).</p></li>\n<li><p>Fixed migrations crash on MySQL when adding a text or a blob field with an\nunhashable default (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25393\">#25393</a>).</p></li>\n<li><p>Changed <code class=\"docutils literal notranslate\">Count</code> queries to execute <code class=\"docutils literal notranslate\">COUNT(*)</code> instead of <code class=\"docutils literal notranslate\">COUNT('*')</code>\nas versions of Django before 1.8 did (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25377\">#25377</a>). This may fix a\nperformance regression on some databases.</p></li>\n<li><p>Fixed custom queryset chaining with <code class=\"docutils literal notranslate\">values()</code> and <code class=\"docutils literal notranslate\">values_list()</code>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/20625\">#20625</a>).</p></li>\n<li><p>Moved the <a class=\"reference internal\" href=\"/en/dev/releases/1.8/#unsaved-model-instance-check-18\"><span class=\"std std-ref\">unsaved model instance assignment data loss check</span></a> on reverse relations to <code class=\"docutils literal notranslate\">Model.save()</code>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25160\">#25160</a>).</p></li>\n<li><p>Readded inline foreign keys to form instances when validating model formsets\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25431\">#25431</a>).</p></li>\n<li><p>Allowed using ORM write methods after disabling autocommit with\n<a class=\"reference internal\" href=\"/en/dev/topics/db/transactions/#django.db.transaction.set_autocommit\" title=\"django.db.transaction.set_autocommit\"><code class=\"xref py py-func docutils literal notranslate\">set_autocommit(False)</code></a>\n(<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/24921\">#24921</a>).</p></li>\n<li><p>Fixed the <code class=\"docutils literal notranslate\">manage.py test --keepdb</code> option on Oracle (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25421\">#25421</a>).</p></li>\n<li><p>Fixed incorrect queries with multiple many-to-many fields on a model with the\nsame ‘to’ model and with <code class=\"docutils literal notranslate\">related_name</code> set to ‘+’ (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/24505\">#24505</a>,\n<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25486\">#25486</a>).</p></li>\n<li><p>Fixed pickling a <code class=\"docutils literal notranslate\">SimpleLazyObject</code> wrapping a model (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/25389\">#25389</a>).</p></li>\n</ul>\n</section>","rootId":"django-1-8-5-release-notes","toc":[{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/1.8.6","title":"Django 1.8.6 release notes","url":"/en/dev/releases/1.8.6/"},"next":{"docname":"releases/1.8.4","title":"Django 1.8.4 release notes","url":"/en/dev/releases/1.8.4/"},"formats":{"html":"/en/dev/releases/1.8.5/","markdown":"/en/dev/releases/1.8.5.md","json":"/en/dev/releases/1.8.5.json"},"source":"https://github.com/django/django/blob/main/docs/releases/1.8.5.txt","official":"https://docs.djangoproject.com/en/dev/releases/1.8.5/","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","1.10","1.9","1.8"],"inLocales":["en"]}