forked from gergely/calendar-social
[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:
parent
5639c3f578
commit
2b1378310a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user