def rollback(self): dd.clean_locks() super(DeadlockDetectingSession, self).rollback()
def commit(self): dd.clean_locks() super(DeadlockDetectingSession, self).commit()
def flush(self): clean_locks() super(DeadlockDetectingSession, self).flush()