Open vahidzhe opened 1 week ago
Hi,
Just a question, what is your expected behaviour here? I'm guessing you don't want to be able edit created_at
and updated_at
right?
In that case you can just specify form_columns
and leave out columns like created_at
to not be shown.
class MyAdmin(...):
form_columns = ["column_a"]
I used form_excluded_columns
and it worked. Thanks
@aminalaee But there may be places where it is necessary to edit the created_at field, so what can I do?
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