def validate_on_submit(self):
        return self.is_submitted() and self.validate()
Checks if form has been submitted and if so runs validate. This is
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/flask_wtf/form.py/Form.validate_on_submit