What is the difference between form.validate_on_submit()
and form.validate()
?
In the Flask WTF docs, the author uses form.validate_on_submit()
. The code works. When I substitute form.validate_on_submit()
with form.validate()
, I see no difference in behavior. I couldn't find form.validate_on_submit()
in the source, but I managed to find form.validate()
code.