summaryrefslogtreecommitdiff
path: root/app/views/consts.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/consts.py')
-rw-r--r--app/views/consts.py5
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 }