Fix broken captcha validation when field is empty and we use WTForms 3

This commit is contained in:
Glandos 2022-01-25 22:15:56 +01:00
parent d324edfc1a
commit e7830b9ac3

View file

@ -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):