mirror of
https://github.com/django/django.git
synced 2025-06-03 18:49:12 +00:00
[4.2.x] Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.
Backport of 9b18af4f6f12b9d25157e0b5afc3dca198f6dd06 from main
This commit is contained in:
parent
a8aa94062b
commit
3fae5d92da
@ -213,11 +213,10 @@ Django provides a single API to control database transactions.
|
|||||||
This also applies to any other mechanism that may hold app state, such
|
This also applies to any other mechanism that may hold app state, such
|
||||||
as caching or global variables. For example, if the code proactively
|
as caching or global variables. For example, if the code proactively
|
||||||
updates data in the cache after saving an object, it's recommended to
|
updates data in the cache after saving an object, it's recommended to
|
||||||
use :ref:`transcation.on_commit <performing-actions-after-commit>`
|
use :ref:`transaction.on_commit() <performing-actions-after-commit>`
|
||||||
instead, to defer cache alterations until the transaction is actually
|
instead, to defer cache alterations until the transaction is actually
|
||||||
committed.
|
committed.
|
||||||
|
|
||||||
|
|
||||||
In order to guarantee atomicity, ``atomic`` disables some APIs. Attempting
|
In order to guarantee atomicity, ``atomic`` disables some APIs. Attempting
|
||||||
to commit, roll back, or change the autocommit state of the database
|
to commit, roll back, or change the autocommit state of the database
|
||||||
connection within an ``atomic`` block will raise an exception.
|
connection within an ``atomic`` block will raise an exception.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user