-
Notifications
You must be signed in to change notification settings - Fork 204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deferred=True which will lead to DetachedInstanceError #815
Comments
Hi, In that case you can just specify class MyAdmin(...):
form_columns = ["column_a"] |
I used |
@aminalaee But there may be places where it is necessary to edit the created_at field, so what can I do? |
@aminalaee I am not opening extra issue for now, but if I have deferred field, and I add that field (in my case
|
Checklist
master
.Describe the bug
In my code, when deferred=True in the created_at field, it is not possible to edit an instance of my model in the Admin panel.
https://docs.sqlalchemy.org/en/20/errors.html#error-bhk3
Steps to reproduce the bug
No response
Expected behavior
No response
Actual behavior
No response
Debugging material
No response
Environment
Windows 10 / ptyhon 3.11 / sqladmin 0.19
Additional context
No response
The text was updated successfully, but these errors were encountered: