#NEWLINE# def commit( self , * a , **kw ) : #NEWLINE# #INDENT# super ( TransactionHooksDatabaseWrapperMixin , self ) . commit ( * kw , ** kw ) #NEWLINE# if self . features . autocommits_when_autocommit_is_off : #NEWLINE# #INDENT# self . run_and_clear_commit_hooks ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . run_commit_hooks_on_set_autocommit_on = True