File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ preceding example but uses a context manager to start a transaction:
105105Run 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
110110register callbacks that run after a transaction is committed to the
111111database. 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
You can’t perform that action at this time.
0 commit comments