relationship, lazy="subquery"

247 views
Skip to first unread message

Siarhei Siarhei

unread,
Apr 13, 2022, 3:08:49 AM4/13/22
to sqlalchemy
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.

models in folders

Siarhei Siarhei

unread,
Apr 15, 2022, 9:41:56 AM4/15/22
to sqlalchemy
https://github.com/aminalaee/sqladmin/commit/3c38b2d9d243cab6503ae86b45eb0d7ef63fd2de

среда, 13 апреля 2022 г. в 10:08:49 UTC+3, Siarhei Siarhei:
Reply all
Reply to author
Forward
0 new messages