mirror of
https://github.com/django/django.git
synced 2024-11-18 15:34:16 +00:00
91e9f1c972
This commits lifts the restriction that the outermost atomic block must be declared with savepoint=False. This restriction was overly cautious. The logic that makes it safe not to create savepoints for inner blocks also applies to the outermost block when autocommit is disabled and a transaction is already active. This makes it possible to use the ORM after set_autocommit(False). Previously it didn't work because ORM write operations are protected with atomic(savepoint=False).
53 lines
1.8 KiB
Plaintext
53 lines
1.8 KiB
Plaintext
==========================
|
|
Django 1.8.5 release notes
|
|
==========================
|
|
|
|
*Under development*
|
|
|
|
Django 1.8.5 fixes several bugs in 1.8.4.
|
|
|
|
Bugfixes
|
|
========
|
|
|
|
* Made the development server's autoreload more robust (:ticket:`24704`).
|
|
|
|
* Fixed ``AssertionError`` in some delete queries with a model containing a
|
|
field that is both a foreign and primary key (:ticket:`24951`).
|
|
|
|
* Fixed ``AssertionError`` in some complex queries (:ticket:`24525`).
|
|
|
|
* Fixed a migrations crash with ``GenericForeignKey`` (:ticket:`25040`).
|
|
|
|
* Made ``translation.override()`` clear the overridden language when a
|
|
translation isn't initially active (:ticket:`25295`).
|
|
|
|
* Fixed crash when using a value in ``ModelAdmin.list_display`` that clashed
|
|
with a reverse field on the model (:ticket:`25299`).
|
|
|
|
* Fixed autocompletion for options of non-``argparse`` management commands
|
|
(:ticket:`25372`).
|
|
|
|
* Alphabetized ordering of imports in ``from django.db import migrations,
|
|
models`` statement in newly created migrations (:ticket:`25384`).
|
|
|
|
* Fixed migrations crash on MySQL when adding a text or a blob field with an
|
|
unhashable default (:ticket:`25393`).
|
|
|
|
* Changed ``Count`` queries to execute ``COUNT(*)`` instead of ``COUNT('*')``
|
|
as versions of Django before 1.8 did (:ticket:`25377`). This may fix a
|
|
performance regression on some databases.
|
|
|
|
* Fixed custom queryset chaining with ``values()`` and ``values_list()``
|
|
(:ticket:`20625`).
|
|
|
|
* Moved the :ref:`unsaved model instance assignment data loss check
|
|
<unsaved-model-instance-check-18>` on reverse relations to ``Model.save()``
|
|
(:ticket:`25160`).
|
|
|
|
* Readded inline foreign keys to form instances when validating model formsets
|
|
(:ticket:`25431`).
|
|
|
|
* Allowed using ORM write methods after disabling autocommit with
|
|
:func:`set_autocommit(False) <django.db.transaction.set_autocommit>`
|
|
(:ticket:`24921`).
|