1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2025-07-02 02:07:45 +02:00
amphora-wiki/src/forms.py

10 lines
299 B
Python

from flask_wtf import CSRFProtect, FlaskForm
from wtforms import StringField, SubmitField, ValidationError, validators
csrf = CSRFProtect()
class SearchForm(FlaskForm):
query_str = StringField("Query", [validators.DataRequired("Please enter the search term")])
submit = SubmitField("Search")