if request.method == 'GET':
    form.username.data = my_user.username
form.email.data = my_user.email
if form.validate_on_submit():
    if form.username.data == nickname:
        query = EditProfile(form.username.data, form.email.data, form.about
            .data, form.website.data)
print(query)
db.session.add(query)
db.session.commit()
flash('User Updated')
print('added')
return url_for('profile.editprofile')
return render_template('profile/add.html', form=form, form_action=
    form_action, title='Update Profile')
Pre-Populate a WTforms in flask, with data from a SQLAlchemy object