1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #32220 -- Added durable argument to transaction.atomic().

This commit is contained in:
Ian Foote
2020-11-22 16:20:56 +00:00
committed by Mariusz Felisiak
parent 8b040e3cbb
commit 3828879eee
5 changed files with 139 additions and 23 deletions

View File

@@ -356,6 +356,11 @@ Models
allow using transforms. See :ref:`using-transforms-in-expressions` for
details.
* The new ``durable`` argument for :func:`~django.db.transaction.atomic`
guarantees that changes made in the atomic block will be committed if the
block exits without errors. A nested atomic block marked as durable will
raise a ``RuntimeError``.
Pagination
~~~~~~~~~~