mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 20:51:49 +02:00
Fix broken captcha validation when field is empty and we use WTForms 3
This commit is contained in:
parent
d324edfc1a
commit
e7830b9ac3
1 changed files with 1 additions and 0 deletions
|
@ -248,6 +248,7 @@ class ProjectForm(EditProjectForm):
|
||||||
class ProjectFormWithCaptcha(ProjectForm):
|
class ProjectFormWithCaptcha(ProjectForm):
|
||||||
captcha = StringField(
|
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):
|
def validate_captcha(form, field):
|
||||||
|
|
Loading…
Reference in a new issue