0
0
mirror of https://github.com/django/django.git synced 2024-12-01 07:31:48 +01:00

Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.

This commit is contained in:
Natalia 2023-10-30 09:24:47 -03:00
parent b412e5645a
commit 9b18af4f6f

View File

@ -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
as caching or global variables. For example, if the code proactively
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
committed.
In order to guarantee atomicity, ``atomic`` disables some APIs. Attempting
to commit, roll back, or change the autocommit state of the database
connection within an ``atomic`` block will raise an exception.