1234567891011121314151617181920 |
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # **************************************************************************
- # Copyright © 2016 jianglin
- # File Name: forms.py
- # Author: jianglin
- # Email: xiyang0807@gmail.com
- # Created: 2016-12-22 22:57:53 (CST)
- # Last Update:星期四 2016-12-22 22:58:7 (CST)
- # By:
- # Description:
- # **************************************************************************
- from flask_wtf import Form
- from wtforms import StringField, TextAreaField, SelectField
- from wtforms.validators import DataRequired, Length
- from flask_babelex import lazy_gettext as _
- class ReplyForm(Form):
- content = TextAreaField(_('Content:'), [DataRequired()])
|