def on_commit(func, using=None):
 get_connection(using).on_commit(func)

def on_commit ( func , using = None ) : get_connection ( using ) . on_commit ( func )
register func to be called when the current transaction is committed .