Changed the date field of the transaction forms to set the default value in the view, but not the form, so that the default value is not set when it did not receive a value.
This commit is contained in:
@ -79,6 +79,7 @@ def show_add_transaction_form(txn_type: TransactionType) -> str:
|
||||
form.validate()
|
||||
else:
|
||||
form = txn_op.form()
|
||||
form.date.data = date.today()
|
||||
return txn_op.render_create_template(form)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user