{"title":"Django 3.1.2 release notes","version":"dev","locale":"en","docname":"releases/3.1.2","url":"/en/dev/releases/3.1.2/","canonical":"https://djangodocs.dev/en/dev/releases/3.1.2/","summary":"Django 3.1.2 fixes several bugs in 3.1.1. Fixed a bug in Django 3.1 where FileField instances with a callable storage were not correctly deconstructed…","html":"<h1>Django 3.1.2 release notes<a class=\"heading-anchor\" href=\"#django-3-1-2-release-notes\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p><em>October 1, 2020</em></p>\n<p>Django 3.1.2 fixes several bugs in 3.1.1.</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>Fixed a bug in Django 3.1 where <code class=\"docutils literal notranslate\">FileField</code> instances with a callable\nstorage were not correctly deconstructed (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/31941\">#31941</a>).</p></li>\n<li><p>Fixed a regression in Django 3.1 where the <a class=\"reference internal\" href=\"/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.ordered\" title=\"django.db.models.query.QuerySet.ordered\"><code class=\"xref py py-attr docutils literal notranslate\">QuerySet.ordered</code></a>\nattribute returned incorrectly <code class=\"docutils literal notranslate\">True</code> for <code class=\"docutils literal notranslate\">GROUP BY</code> queries (e.g.\n<code class=\"docutils literal notranslate\">.annotate().values()</code>) on models with <code class=\"docutils literal notranslate\">Meta.ordering</code>. A model’s\n<code class=\"docutils literal notranslate\">Meta.ordering</code> doesn’t affect such queries (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/31990\">#31990</a>).</p></li>\n<li><p>Fixed a regression in Django 3.1 where a queryset would crash if it contained\nan aggregation and a <code class=\"docutils literal notranslate\">Q</code> object annotation (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32007\">#32007</a>).</p></li>\n<li><p>Fixed a bug in Django 3.1 where a test database was not synced during\ncreation when using the <a class=\"reference internal\" href=\"/en/dev/ref/settings/#std-setting-TEST_MIGRATE\"><code class=\"xref std std-setting docutils literal notranslate\">MIGRATE</code></a> test database\nsetting (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32012\">#32012</a>).</p></li>\n<li><p>Fixed a <code class=\"docutils literal notranslate\">django.contrib.admin.EmptyFieldListFilter</code> crash when using on a\n<code class=\"docutils literal notranslate\">GenericRelation</code> (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/32038\">#32038</a>).</p></li>\n<li><p>Fixed a regression in Django 3.1.1 where the admin changelist filter sidebar\nwould not scroll for a long list of available filters (<a class=\"extlink-ticket reference external\" href=\"https://code.djangoproject.com/ticket/31986\">#31986</a>).</p></li>\n</ul>\n</section>","rootId":"django-3-1-2-release-notes","toc":[{"title":"Bugfixes","anchor":"bugfixes","children":[]}],"breadcrumbs":[{"docname":"releases/index","title":"Release notes","url":"/en/dev/releases/"}],"prev":{"docname":"releases/3.1.3","title":"Django 3.1.3 release notes","url":"/en/dev/releases/3.1.3/"},"next":{"docname":"releases/3.1.1","title":"Django 3.1.1 release notes","url":"/en/dev/releases/3.1.1/"},"formats":{"html":"/en/dev/releases/3.1.2/","markdown":"/en/dev/releases/3.1.2.md","json":"/en/dev/releases/3.1.2.json"},"source":"https://github.com/django/django/blob/main/docs/releases/3.1.2.txt","official":"https://docs.djangoproject.com/en/dev/releases/3.1.2/","inVersions":["dev","6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1"],"inLocales":["en"]}