Skip to content

Commit

Permalink
[4.2.x] Refs #30601 -- Fixed typos in docs/topics/db/transactions.txt.
Browse files Browse the repository at this point in the history
Backport of 9b18af4 from main
  • Loading branch information
nessita committed Oct 30, 2023
1 parent a8aa940 commit 3fae5d9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/topics/db/transactions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3fae5d9

Please sign in to comment.