default value to None for WTForm backward compatibility

This commit is contained in:
Glandos 2021-11-13 21:16:31 +01:00
parent 632dff8c60
commit fdbc4c0447

View file

@ -325,6 +325,7 @@ class BillForm(FlaskForm):
original_currency = SelectField(_("Currency"), validators=[DataRequired()])
external_link = URLField(
_("External link"),
default=None,
validators=[Optional(), URL()],
description=_("A link to an external document, related to this bill"),
)