[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.
This commit is contained in:
Gergely Polonkai 2018-07-12 12:16:22 +02:00
parent 5639c3f578
commit 2b1378310a

View File

@ -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