summaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2016-07-05 08:38:54 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2016-07-05 08:38:54 +0200
commit05e5138b704bae46d05e124a80691bb1aa17b24b (patch)
tree34261fa5bdc69fdf5a8becd24761613366dac4e8 /app/utils.py
parente263a11eeb08443ebfd7bf3fa70f4ceb543b44b0 (diff)
downloadkosten-05e5138b704bae46d05e124a80691bb1aa17b24b.tar.gz
kosten-05e5138b704bae46d05e124a80691bb1aa17b24b.tar.bz2
kosten-05e5138b704bae46d05e124a80691bb1aa17b24b.zip
2to3 conversion
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/utils.py b/app/utils.py
index 9ee0cf1..73f2b51 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -101,7 +101,7 @@ def assert_authorisation(constructor, param):
obj = constructor(p)
if obj is None:
- flash(u"Eintrag existiert nicht!", u'error')
+ flash("Eintrag existiert nicht!", 'error')
return redirect('index')
if not hasattr(obj, 'user_id'):
@@ -109,7 +109,7 @@ def assert_authorisation(constructor, param):
# explicitly use user_id to avoid having to load the user object
if obj.user_id != current_user.id:
- flash(u"Nicht erlaubte Operation!", u'error')
+ flash("Nicht erlaubte Operation!", 'error')
return redirect('index')
else:
return f(*args, **kwargs)