forms.py 585 B

123456789101112131415
  1. # !/usr/bin/env python
  2. # -*- coding=UTF-8 -*-
  3. # *************************************************************************
  4. # Copyright © 2015 JiangLin. All rights reserved.
  5. # File Name: forms.py
  6. # Author:JiangLin
  7. # Mail:xiyang0807@gmail.com
  8. # Created Time: 2016-03-16 17:37:48
  9. # *************************************************************************
  10. from flask_wtf import Form
  11. from wtforms import TextAreaField
  12. from maple.forms.forms import DataRequired, Length
  13. class ApplyForm(Form):
  14. content = TextAreaField('申请理由:', [DataRequired(), Length(min=2,max=255)])