The validate_on_submit is always false and the form.errors is empty. I'm clueless. Tips? thanks.
app.py:
def set_comment(page):
f = form.CommentForm()
if f.validate_on_submit():
db.set_comment(f.text.data, datetime.datetime.utcnow(), page, 1)
else:
flash(f.errors)
form.py
class CommentForm(Form):
text = TextField('Message')
show.html
<div id="post_comment">
<form action="" method="post" name="comment">
{{form.hidden_tag()}}
{{form.text}}
</div>