diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-01-12 00:58:24 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2020-01-12 00:58:24 +0100 |
commit | 649a7380123199171dcf511c35bb67726472a663 (patch) | |
tree | 36807c643cd8561e6bf2c4e3af5ef722be94e56a /app/views | |
parent | 50ce9d85c8b1f3f8e2e7b19b1d2b61f9590fa539 (diff) | |
download | kosten-649a7380123199171dcf511c35bb67726472a663.tar.gz kosten-649a7380123199171dcf511c35bb67726472a663.tar.bz2 kosten-649a7380123199171dcf511c35bb67726472a663.zip |
Support MonthField, but not HTML5 atm
Diffstat (limited to '')
-rw-r--r-- | app/views/consts.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/consts.py b/app/views/consts.py index 66c8938..5d6598d 100644 --- a/app/views/consts.py +++ b/app/views/consts.py @@ -25,12 +25,10 @@ def one_year(d): # Form # class ConstForm(F.Form): - start = F.DateField('Beginn', F.req, - format='%m.%Y', + start = F.MonthField('Beginn', F.req, default=lambda: today()) - end = F.DateField('Ende', F.req, - format='%m.%Y', + end = F.MonthField('Ende', F.req, default=lambda: one_year(today()), description='(einschließlich)') |