summaryrefslogtreecommitdiff
path: root/app/forms.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2013-04-14 21:00:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2013-04-14 21:00:24 +0200
commit18f0c3c367a4dd53aff163f717bb62fb661e8600 (patch)
treea9f28ed969d7332efe9ca281cde99a25d263bef6 /app/forms.py
parenta98445a75c3ac2a46540eee146129f7c77e005d5 (diff)
downloadkosten-18f0c3c367a4dd53aff163f717bb62fb661e8600.tar.gz
kosten-18f0c3c367a4dd53aff163f717bb62fb661e8600.tar.bz2
kosten-18f0c3c367a4dd53aff163f717bb62fb661e8600.zip
Backport @app.template_test; make the functions in expenses filters/tests
Diffstat (limited to 'app/forms.py')
-rw-r--r--app/forms.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/forms.py b/app/forms.py
index 9490839..a7b9fcd 100644
--- a/app/forms.py
+++ b/app/forms.py
@@ -13,11 +13,10 @@ from . import app
today = datetime.date.today
+@app.template_test("hidden")
def is_hidden_field(f):
return isinstance(f, HiddenField)
-app.jinja_env.tests["hidden"] = is_hidden_field
-
class DecimalField(fields.DecimalField):
def process_formdata(self, valuelist):
if valuelist: