You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application flask-admin. There is an endpoint that accepts the id of the object and the name of the field to be modified by post request. The session_maker from sqlalchemy version 1.3.28 is used to create the scoped_session.
The problem occurred when upgrading to python version 3.11.
Problem description:
An object is created and flush it to the database
A post-request is sent to the endpoint to change the object field.
Check if the object's field has changed
At point 3, a DetachedInstanceError (sqlalchemy) occurs.
By analyzing it was found out that the error is on the side of flask-admin - it removes the object from the session before the time.
Please consider fixing this error. In python 3.11 the same test worked perfectly.
The text was updated successfully, but these errors were encountered:
I have an application flask-admin. There is an endpoint that accepts the id of the object and the name of the field to be modified by post request. The session_maker from sqlalchemy version 1.3.28 is used to create the scoped_session.
The problem occurred when upgrading to python version 3.11.
Problem description:
At point 3, a DetachedInstanceError (sqlalchemy) occurs.
By analyzing it was found out that the error is on the side of flask-admin - it removes the object from the session before the time.
Please consider fixing this error. In python 3.11 the same test worked perfectly.
The text was updated successfully, but these errors were encountered: