Open kopax-polyconseil opened 3 years ago
I'm struggling with this today.
On after_model_change I can do a query to db, so my solution was fill the field with any value and then change that field using after_model_change.
Not the best solution, but it works.
I am calling the following
on_model_change
:This cause the following error:
This is probably because of: https://github.com/flask-admin/flask-admin/blob/e764f6f0be3facbefb2b4d30b5c3f2f2c630d530/flask_admin/contrib/sqla/view.py#L1141
How can I query the database to fill my model using
on_model_change
?