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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/consts.py b/app/views/consts.py
index dbf2422..cb50704 100644
--- a/app/views/consts.py
+++ b/app/views/consts.py
@@ -33,7 +33,7 @@ def const_form(cur=None, obj=None):
@mod.route('/')
@login_required
-@templated()
+@templated
def list ():
d = today()
@@ -57,14 +57,14 @@ def list ():
@mod.route('/<int:id>')
@login_required
@assert_authorisation('id')
-@templated()
+@templated
def show(id):
return { 'exp': ConstExpense.get(id) }
@mod.route('/edit/<int:id>', methods=('GET', 'POST'))
@login_required
@assert_authorisation('id')
-@templated()
+@templated
def edit(id):
exp = ConstExpense.get(id)
form = const_form(exp)
@@ -104,7 +104,7 @@ def add_from(other):
@mod.route('/add/', methods=('GET', 'POST'))
@login_required
-@templated()
+@templated
def add ():
exp = ConstExpense()