def do(self, num):
        Thing.objects.create(num=num)
        transaction.on_commit(lambda: self.notify(num))
Create a Thing instance and notify about it.
dataset/ETHPy150Open django/django/tests/transaction_hooks/tests.py/TestConnectionOnCommit.do