How do you add a summary row for Flask-Admin?
问题 In my flask-admin index_view, I am displaying financial information for my rows. I would like to add an extra row, "summary row", at the bottom of my index_view table which sums up all the columns. How can I accomplish this? 回答1: There's a couple of things you need to do. Provide a custom list.html template and override the render() method for the view. In the render method inject your summary data into the kwargs and in the custom template use the summary data to output appropriate html. You