Customize (override) Flask-Admin's Submit method from edit view

前端 未结 2 1640
无人及你
无人及你 2020-12-16 16:14

Preconditions:
I\'m new to Python and to Flask-Admin in particular. I created a simple test service, which has MondoDB, keeping the data with relationship of \'

2条回答
  •  死守一世寂寞
    2020-12-16 17:06

    You can override on_model_change method to add your custom logic. Check http://flask-admin.readthedocs.org/en/latest/api/mod_model/#flask.ext.admin.model.BaseModelView.on_model_change

提交回复
热议问题