diff options
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)') |