https://github.com/aminalaee/sqladmin/commit/3c38b2d9d243cab6503ae86b45eb0d7ef63fd2de

среда, 13 апреля 2022 г. в 10:08:49 UTC+3, Siarhei Siarhei: 

> 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/db861a58-e329-4967-b805-ee7ab24cac64n%40googlegroups.com.

Reply via email to