Chapter 7

This commit is contained in:
2023-06-03 18:07:36 +02:00
parent 4dd7d11190
commit 8c1df34587
7 changed files with 85 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ def user(username):
@app.route("/edit_profile", methods=["GET", "POST"])
@login_required
def edit_profile():
form = EditProfileForm()
form = EditProfileForm(current_user.username)
if form.validate_on_submit():
current_user.username = form.username.data
current_user.about_me = form.about_me.data