Fix #23 also sent a pull request to flask-admin mrjoes/flask-admin#287