diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-19 11:34:52 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-19 11:34:52 +0200 |
commit | c9112dce1074669041fcc3d950101119b9d18569 (patch) | |
tree | 9e862b30073fec266bbfcbed77af92dc5124d008 /app/views/consts.py | |
parent | a8fc044a8dff829c5b55bcb32cb5a7525b5bc746 (diff) | |
download | kosten-c9112dce1074669041fcc3d950101119b9d18569.tar.gz kosten-c9112dce1074669041fcc3d950101119b9d18569.tar.bz2 kosten-c9112dce1074669041fcc3d950101119b9d18569.zip |
More informational flashes
Diffstat (limited to '')
-rw-r--r-- | app/views/consts.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/consts.py b/app/views/consts.py index cb50704..df18188 100644 --- a/app/views/consts.py +++ b/app/views/consts.py @@ -1,4 +1,5 @@ -from . import Blueprint, db, \ +# -*- coding: utf-8 -*- +from . import Blueprint, flash, db, \ current_user, login_required, \ assert_authorisation, templated, redirect, request @@ -78,6 +79,7 @@ def edit(id): elif form.flash_validate(): # change form.populate_obj(exp) db.session.commit() + flash(u"Eintrag geändert.") return redirect('.show', id = id) return { 'form': form } @@ -115,6 +117,7 @@ def add (): exp.user = current_user db.session.add(exp) db.session.commit() + flash(u"Eintrag hinzugefügt.") return redirect('.show', id = exp.id) return { 'form': form } |