def orm_update_listener(mapper, connection, target):
if getattr(target, '__history_table__', None):
return
session = object_session(target)
if session.is_modified(target, include_collections=False):
target.send_to_changes(connection, CrudOperation.UPDATE)
评论列表
文章目录