Skip to content

Commit 4d0fdb3

Browse files
committed
wording
1 parent 7b36ded commit 4d0fdb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/interact-data/transactions.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,13 @@ preceding example but uses a context manager to start a transaction:
105105
Run Callbacks After a Transaction
106106
---------------------------------
107107

108-
If you want to run certain operations only if a transaction successfully
109-
completes, you can us the ``on_commit()`` method. This method allows you to
108+
If you want to perform certain actions only if a transaction successfully
109+
completes, you can use the ``on_commit()`` method. This method allows you to
110110
register callbacks that run after a transaction is committed to the
111111
database. Pass a function, or any callable object, as an argument to
112112
``on_commit()``.
113113

114-
The following example queries for movies that have a genre value of
114+
The following example queries for movies that have a ``genre`` value of
115115
``["Horror", "Comedy"]`` only after a related database transaction completes:
116116

117117
.. literalinclude:: /includes/interact-data/transactions.py

0 commit comments

Comments
 (0)