Skip to content

Glossary: Django Beyond the Basics

captureOnCommitCallbacks

Also written: self.captureOnCommitCallbacks(execute=True)

A test helper that runs `on_commit` functions when its block ends. It is needed because a `TestCase` never really commits.

Where the book teaches it

Related terms

Transaction, on_commitmail.outbox