forms.py 685 B

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