diff options
Diffstat (limited to '')
-rw-r--r-- | app/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/forms.py b/app/forms.py index 1ab3c72..8fbd4fb 100644 --- a/app/forms.py +++ b/app/forms.py @@ -28,7 +28,7 @@ req = [v.input_required()] class ExpenseForm(Form): date = DateField(u"Datum", req, format="%d.%m.%Y", - default=today()) + default=lambda: today()) expense = DecimalField(u"Betrag", req, description=u"EUR", @@ -42,11 +42,11 @@ class ExpenseForm(Form): class ConstForm(Form): start = DateField(u"Beginn", req, format="%m.%Y", - default=today()) + default=lambda: today()) end = DateField(u"Ende", req, format="%m.%Y", - default=today().replace(year = today().year + 1), + default=lambda: today().replace(year = today().year + 1), description=u"(einschließlich)") months = IntegerField(u"Zahlungsrythmus", req, |