SHARE
TWEET

Untitled

a guest May 21st, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MG(FlaskForm):
  2.     name = StringField('Название', validators=[length(min=3, max=20)])
  3.     img = FileField('Аватарка', validators=[FileAllowed(['jpeg', 'jpg', 'png'])])
  4.     desc = TextAreaField('Описание', validators=[length(max=200)])
  5.     submit = SubmitField('Готово')
  6.  
  7.     class SF(FlaskForm):
  8.         price = IntegerField('Цена')
  9.     goods = FieldList(FormField(SF), min_entries=20, max_entries=20)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top