class F(Form): a = PrePostTestField(validators=[validators.Length(max=1, message="too long")])
class F2(form.Form): a = StringField( validators=[validators.DataRequired(), validators.Length(max=3)])
class F3(form.Form): a = StringField(validators=[validators.Length(max=1)])
class F2(form.Form): class Meta: def get_translations(self, form): return Lower_Translator() a = StringField(label='', validators=[validators.Length(max=5)])