Register `func` to be called when the current transaction is committed. If the current transaction is rolled back, `func` will not be called.
(func, using=None, robust=False)
| 138 | |
| 139 | |
| 140 | def on_commit(func, using=None, robust=False): |
| 141 | """ |
| 142 | Register `func` to be called when the current transaction is committed. |
| 143 | If the current transaction is rolled back, `func` will not be called. |
| 144 | """ |
| 145 | get_connection(using).on_commit(func, robust) |
| 146 | |
| 147 | |
| 148 | ################################# |