mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Better feedback when changing project settings
We now display a success flash message, and we stay on the same page (instead of redirecting to the list of bills, which makes little sense)
This commit is contained in:
parent
9e1e284175
commit
b99248ffa6
1 changed files with 2 additions and 1 deletions
|
@ -429,7 +429,8 @@ def edit_project():
|
|||
db.session.add(project)
|
||||
db.session.commit()
|
||||
|
||||
return redirect(url_for("main.list_bills"))
|
||||
flash(_("Project settings have been changed successfully."))
|
||||
return redirect(url_for("main.edit_project"))
|
||||
else:
|
||||
edit_form.name.data = g.project.name
|
||||
|
||||
|
|
Loading…
Reference in a new issue