1
0
mirror of https://github.com/django/django.git synced 2025-02-19 05:45:48 +00:00
Aymeric Augustin 91e9f1c972 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).
2015-09-21 22:21:53 +02:00
..
2014-02-28 21:03:46 -05:00
2015-08-08 12:02:32 +02:00
2014-02-25 10:28:32 -05:00
2015-08-08 12:02:32 +02:00
2014-02-25 10:28:32 -05:00
2015-02-20 09:21:39 -05:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05: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-02-20 09:21:39 -05:00
2015-01-27 11:48:04 -05:00
2015-08-08 12:02:32 +02:00
2015-02-20 09:21:39 -05:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05: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:24:53 -04:00
2014-12-19 18:07:52 +01:00
2014-12-19 18:07:52 +01:00
2015-02-20 09:21:39 -05: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-02-20 09:21:39 -05:00
2015-08-08 12:02:32 +02:00
2015-01-02 19:20:18 -05:00
2015-02-20 09:21:39 -05:00
2015-01-27 11:48:04 -05:00
2015-05-01 16:24:39 -04:00
2015-05-20 13:48:06 -04:00
2015-08-18 19:52:45 -04:00