From fdbc4c044741bc1a0503202f1c069d32fe969ed9 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sat, 13 Nov 2021 21:16:31 +0100 Subject: [PATCH] default value to None for WTForm backward compatibility --- ihatemoney/forms.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index e303287a..6800df10 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -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"), )