From 2bc34431cf844f233e8c4d199787fd69a942a846 Mon Sep 17 00:00:00 2001 From: Mikhail Sidorov <7780462+mikhailsidorov@users.noreply.github.com> Date: Fri, 2 Feb 2018 00:24:54 +1200 Subject: [PATCH] Add missed argument. --- app/main/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/routes.py b/app/main/routes.py index ca61710..929a2b9 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -87,7 +87,7 @@ def user_popup(username): @bp.route('/edit_profile', methods=['GET', 'POST']) @login_required def edit_profile(): - form = EditProfileForm(request.form) + form = EditProfileForm(urrent_user.username, request.form) if form.validate_on_submit(): current_user.username = form.username.data current_user.about_me = form.about_me.data