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