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:
105
105
Run Callbacks After a Transaction
106
106
---------------------------------
107
107
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
110
110
register callbacks that run after a transaction is committed to the
111
111
database. Pass a function, or any callable object, as an argument to
112
112
``on_commit()``.
113
113
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
115
115
``["Horror", "Comedy"]`` only after a related database transaction completes:
116
116
117
117
.. literalinclude:: /includes/interact-data/transactions.py
You can’t perform that action at this time.
0 commit comments