1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ihatemoney_ynh.git synced 2024-09-03 19:26:15 +02:00

display a flash message when an user is coming back

This commit is contained in:
Alexis Metaireau 2011-08-22 23:29:10 +02:00
parent e97d460a4a
commit e0a40a0c7c

View file

@ -179,6 +179,7 @@ def add_member():
if person: if person:
person[0].activated = True person[0].activated = True
db.session.commit() db.session.commit()
flash("%s is part of this project again" % person[0].name)
return redirect(url_for("list_bills")) return redirect(url_for("list_bills"))
db.session.add(Person(name=form.name.data, project=g.project)) db.session.add(Person(name=form.name.data, project=g.project))