This repository has been archived on 2023-10-10. You can view files and clone it, but cannot push or open issues/pull-requests.
cutedb/webapp/forms.py

11 lines
361 B
Python

from wtforms import Form, TextField, TextAreaField, validators
class NewQuote(Form):
text = TextAreaField("Please enter the quote you wish to be submitted:", [
validators.Required(),
validators.Length(min=5, max=10000)
])
meta = TextField("Please enter any context, additional information, if any:", [validators.Length(max=100)])