Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created April 27, 2020 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/c8f115c95104b1747402a538b6a978ca to your computer and use it in GitHub Desktop.
Save Porter97/c8f115c95104b1747402a538b6a978ca to your computer and use it in GitHub Desktop.
#...
from wtforms.validators import Length, Regexp, DataRequired
#...
class CollectionForm(FlaskForm):
class Meta:
csrf = False
name = StringField('name', validators=[DataRequired()])
description = StringField('description', validators=[DataRequired()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment