In admin - when editing, you first need to change the author-owner: to 
another, otherwise an error.

sqlalchemy.exc.InvalidRequestError: Can't attach instance <User at 
0x203c4b3e380>; another instance with key (<class 'auth_config.auth.User'>, 
(1,), None) is already present in this session.

https://github.com/wnesbv/starlette-all
models in folders
auth.py 
<https://github.com/wnesbv/starlette-all/blob/main/auth_config/auth.py>
models.py <https://github.com/wnesbv/starlette-all/blob/main/item/models.py>

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/1c3d336d-a003-4886-a974-f0b8e98226fbn%40googlegroups.com.

Reply via email to