Re: [sqlalchemy] Callback for when orm data is load

2021-04-30 Thread Mike Bernson
Looking at the code in loading I see where instance  state is getting set to unmodified. attr.py in _instance at line 975:     if effective_populate_existing or state.modified:     if refresh_state and only_load_props:     state._commit(dict_, only_

Re: [sqlalchemy] Callback for when orm data is load

2021-04-30 Thread Mike Bernson
The load and refresh events is close to what I am looking for. I need to be able to modify attribute of object/instance that have been load or refreshed. I can not do the work in load or refresh event because any changes made in the events are not track and written out on a flush/commit. . I am u