django/docs/topics/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
..
examples [1.8.x] Fixed #25160 -- Moved unsaved model instance data loss check to Model.save() 2015-08-10 11:31:22 -04:00
aggregation.txt [1.8.x] Fixed #25355 -- Made two tweaks to docs/topics/db/aggregation.txt. 2015-09-05 10:20:36 -04:00
index.txt Fixed #17605: Restored deleted query documentation that used to live in doctests. Thanks zsiciarz for work on the patch. 2012-03-14 22:16:46 +00:00
managers.txt Fixed #23597 -- Clarified the manager that {Single,Multiple}ObjectMixin.model uses. 2014-10-06 08:23:42 -04:00
models.txt [1.8.x] Fixed #11078 -- Removed inaccurate docs about proxy models Meta. 2015-04-20 09:17:28 -04:00
multi-db.txt [1.8.x] Capitalized "Python" in docs. 2015-06-05 08:38:43 -04:00
optimization.txt [1.8.x] Updated Wikipedia links to use https 2015-08-08 12:09:53 +02:00
queries.txt [1.8.x] Simplified wording in QuerySet.update() docs. 2015-06-01 09:42:53 -04:00
sql.txt [1.8.x] Fixed #25326 -- Added namedtuple example for executing custom SQL. 2015-09-03 13:17:34 -04:00
tablespaces.txt [1.8.x] Updated Wikipedia links to use https 2015-08-08 12:09:53 +02:00
transactions.txt [1.8.x] Fixed #24921 -- set_autocommit(False) + ORM queries. 2015-09-21 22:31:13 +02:00