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:
committed by
Mariusz Felisiak
parent
8b040e3cbb
commit
3828879eee
@@ -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
|
||||
~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user