socek

Untitled

Oct 14th, 2015
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. class LoginForm(PostForm, LoginMixin):
  2.  
  3.     def create_form(self):
  4.         self.add_field('email', label='E-mail', validators=[NotEmpty()])
  5.         self.add_field('password', label='HasÅ‚o', validators=[NotEmpty()])
  6.  
  7.         self.add_form_validator(EmailMustExists())
  8.         self.add_form_validator(ValidateUserPassword())
Advertisement
Add Comment
Please, Sign In to add comment