From 2b1378310a1d40b714b936810df0a176e9a42b0e Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 12 Jul 2018 12:16:22 +0200 Subject: [PATCH] [Bugfix] Make the profile editing form redirect to the profile editing form after saving As funny as it says, this provides better UX (and the same technique is used on the other forms. --- calsocial/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/calsocial/__init__.py b/calsocial/__init__.py index 3ff3383..2e44130 100644 --- a/calsocial/__init__.py +++ b/calsocial/__init__.py @@ -400,6 +400,8 @@ class CalendarSocialApp(Flask): db.session.add(current_user.profile) db.session.commit() + return redirect(url_for('edit_profile')) + return render_template('profile-edit.html', form=form) @staticmethod