From 1f851f247c220f96ebee5d4d381bee2d9966c629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20D=C3=BCster?= Date: Wed, 14 Feb 2024 11:32:00 +0100 Subject: [PATCH] Fix default date for transaction creation Until now, the default date was the one the app was started on as the value was calculated on class initialisation. --- web/blueprints/finance/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/blueprints/finance/forms.py b/web/blueprints/finance/forms.py index 7eb880094..bee79732c 100644 --- a/web/blueprints/finance/forms.py +++ b/web/blueprints/finance/forms.py @@ -150,7 +150,7 @@ class TransactionCreateForm(Form): description = TextField("Beschreibung", validators=[DataRequired()]) valid_on = DateField( "Gültig ab", validators=[Optional()], today_btn=True, - today_highlight=True, default=datetime.date.today()) + today_highlight=True, default=datetime.date.today) splits = FieldList( FormField(SplitCreateForm), validators=[DataRequired()],