django1/django/db
Aymeric Augustin 425c5e40ea [1.8.x] Fixed #24921 -- set_autocommit(False) + ORM queries.
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).

Backport of 91e9f1c from master
2015-09-21 22:31:13 +02:00
..
backends [1.8.x] Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with other backends. 2015-09-18 09:33:23 -04:00
migrations [1.8.x] Fixed #25384 -- Ordered imports in newly created migration files 2015-09-12 13:23:38 +10:00
models [1.8.x] Fixed #25160 (again) -- Moved data loss check on reverse relations. 2015-09-19 20:28:22 +02:00
__init__.py Fixed #21430 -- Added a RuntimeWarning when unpickling Models and QuerySets from a different Django version. 2014-06-11 10:03:34 -04:00
transaction.py [1.8.x] Fixed #24921 -- set_autocommit(False) + ORM queries. 2015-09-21 22:31:13 +02:00
utils.py [1.8.x] Renamed RemovedInDjango20Warning to RemovedInDjango110Warning. 2015-06-23 07:22:16 -04:00