def was_deleted(object):
 state = attributes.instance_state(object)
 return state.was_deleted

def was_deleted ( object ) : state = attributes . instance_state ( object ) return state . was_deleted
return true if the given object was deleted within a session flush .