'Commit a transaction and reset the dirty flag.'

def commit(self):

    self.validate_thread_sharing()
    self.validate_no_atomic_block()
    self._commit()
    self.errors_occurred = False
    self.run_commit_hooks_on_set_autocommit_on = True
