Flask-How Do I Combine Flask-WTF dan Flask-Sqlalchemy Untuk Mengedit Model DB

@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():
        form.populate_obj(person)
SAMER SAEID