@app.route('/person/edit/<id>/', methods=['GET', 'POST'])
def edit_person(id):
    person = Person.query.get_or_404(id)
form = PersonForm(obj=person)
if form.validate_on_submit():
    pass
Flask - how do I combine Flask-WTF and Flask-SQLAlchemy to edit db models?