forms.py
class MoneyMarketForm(Form):
want = SelectField('State', choices=[('b', 'buy'), ('s', 'sell')])
currency = SelectField('curency', choices=[('u','USD'),('e','EUR'),('r','RUB')])
total = IntegerField('total', [validators.required(),validators.Length(0, 10000000)])
course = IntegerField('course', [validators.required('Please enter your course'), validators.Length(0, 10000)])
phone = IntegerField('phone', [validators.required(), validators.NumberRange(min=0, max=10)])
city = SelectField('city' , choices=[('c1','city1'),('c2','city2'),('c3','city3'), ('c4', 'city4')])
area = StringField('area', [validators.required(), validators.Length(max=200)])
comment = StringField('cooment', [validators.required(), validators.Length(max=350)])
relevant = IntegerField('relevant',[validators.required(), validators.Length(max=200)])#?
#submint = SubmitField('Send')
pub_date = DateTimeField('Posted Date (mm/dd/yyyy)', validators=[Required()], format='%m/%d/%Y')