from flask.ext.wtf import Form
from wtforms import StringField, BooleanField
from wtforms.validators import DataRequired


class LoginForm(Form):
    openid = StringField('openid', validators=[DataRequired()])
    remember_me = BooleanField('remember_me', default=False)

from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Length


class LoginForm(Form):
    openid = StringField('openid', validators=[DataRequired()])
    remember_me = BooleanField('remember_me', default=False)


class EditForm(Form):
    nickname = StringField('nickname', validation=[DataRequired()])
    about_me = TextAreaField('about_me', validators=[Length(min=0, max=140)])

Define the edit profile form
Define the edit profile form

  from flask.ext.wtf import Form
- from wtforms import StringField, BooleanField
+ from wtforms import StringField, BooleanField, TextAreaField
- from wtforms.validators import DataRequired
+ from wtforms.validators import DataRequired, Length
  
  
  class LoginForm(Form):
      openid = StringField('openid', validators=[DataRequired()])
      remember_me = BooleanField('remember_me', default=False)
  
+ 
+ class EditForm(Form):
+     nickname = StringField('nickname', validation=[DataRequired()])
+     about_me = TextAreaField('about_me', validators=[Length(min=0, max=140)])
+ 
Define the edit profile form
## Code Before:
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField
from wtforms.validators import DataRequired


class LoginForm(Form):
    openid = StringField('openid', validators=[DataRequired()])
    remember_me = BooleanField('remember_me', default=False)

## Instruction:
Define the edit profile form
## Code After:
from flask.ext.wtf import Form
from wtforms import StringField, BooleanField, TextAreaField
from wtforms.validators import DataRequired, Length


class LoginForm(Form):
    openid = StringField('openid', validators=[DataRequired()])
    remember_me = BooleanField('remember_me', default=False)


class EditForm(Form):
    nickname = StringField('nickname', validation=[DataRequired()])
    about_me = TextAreaField('about_me', validators=[Length(min=0, max=140)])
