1
0
mirror of https://github.com/django/django.git synced 2025-04-10 00:09:41 +00:00
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
..
2014-02-28 21:03:46 -05:00
2014-11-03 07:47:39 -05:00
2013-10-10 16:49:20 -04:00
2012-08-31 20:35:50 +02:00
2014-02-25 10:28:32 -05:00
2012-08-31 20:35:50 +02:00
2014-02-25 10:28:32 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-07 09:42:25 -05:00
2014-11-03 07:47:39 -05:00
2014-12-19 18:07:52 +01:00
2014-08-20 16:31:45 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-01-02 19:20:18 -05:00
2015-01-27 11:48:27 -05:00
2013-09-10 21:07:22 -04:00
2013-09-15 14:14:26 -04:00
2013-11-09 10:17:17 -05:00
2014-11-03 07:47:39 -05:00
2014-12-19 18:07:52 +01:00
2014-08-20 16:31:45 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-01-02 19:20:18 -05:00
2015-06-05 08:38:43 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2014-08-20 16:31:45 -04:00
2014-09-02 21:34:29 -04:00
2015-01-02 19:20:18 -05:00
2015-01-02 19:20:18 -05:00
2015-01-27 11:48:27 -05:00