mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-18 00:35:51 +00:00
Chapter 7
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user