You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which means that if you cannot first attempt to delete locally (and then flush to make sure it works) before calling an external service and then finishing with a commit.
Ideally there would be a new hook:
self.session.flush()
self.session.delete(model)
self.before_model_delete_commit() # new hookself.session.commit()
This allows getting e.g. integrity errors before I make an external call since I cannot roll back the external call.
The text was updated successfully, but these errors were encountered:
I suggest adding an additional hook to
delete_model
allowing actions betweensession.delete
andsession.commit
.Currently,
delete_model
looks like:flask-admin/flask_admin/contrib/sqla/view.py
Lines 1132 to 1134 in 7fa26ab
which means that if you cannot first attempt to
delete
locally (and thenflush
to make sure it works) before calling an external service and then finishing with a commit.Ideally there would be a new hook:
This allows getting e.g. integrity errors before I make an external call since I cannot roll back the external call.
The text was updated successfully, but these errors were encountered: