The sample code throws an error in Flask-Admin 1.5.3 when creating a user through the UI, but doesn't throw it in 1.5.4
More details you can find in the issue.
Before running, prepare the environment:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
flask run
And migrate the db in flask shell
:
from app import db
db.create_all()