def get_delete_form(self):
        class DeleteForm(self.form_base_class):
            id = HiddenField(validators=[InputRequired()])
            url = HiddenField()

        return DeleteForm
Create form class for model delete view.
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/model/base.py/BaseModelView.get_delete_form