mirror of
https://github.com/django/django.git
synced 2024-11-18 23:44:22 +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). |
||
---|---|---|
.. | ||
examples | ||
aggregation.txt | ||
index.txt | ||
managers.txt | ||
models.txt | ||
multi-db.txt | ||
optimization.txt | ||
queries.txt | ||
sql.txt | ||
tablespaces.txt | ||
transactions.txt |