Skip to content

Commit

Permalink
Fix default date for transaction creation
Browse files Browse the repository at this point in the history
Until now, the default date was the one the app was started on as the
value was calculated on class initialisation.
  • Loading branch information
FestplattenSchnitzel committed Feb 16, 2024
1 parent d10b3c6 commit 1f851f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/blueprints/finance/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down

0 comments on commit 1f851f2

Please sign in to comment.