From 1a90e4cdd8d65278ea3342c74dc29ffb4dba8911 Mon Sep 17 00:00:00 2001 From: Glandos Date: Tue, 25 Jan 2022 22:26:56 +0100 Subject: [PATCH] Fix broken captcha validation when field is empty and we use WTForms 3 (#988) --- ihatemoney/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index 0e99f534..bbdef334 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -247,7 +247,7 @@ class ProjectForm(EditProjectForm): class ProjectFormWithCaptcha(ProjectForm): captcha = StringField( - _("Which is a real currency: Euro or Petro dollar?"), + _("Which is a real currency: Euro or Petro dollar?"), default="" ) def validate_captcha(form, field):