예제 #1
0
파일: forms.py 프로젝트: he1mdallr/the-tale
class EditProfileForm(forms.Form):

    nick = fields.RegexField(label='Имя',
                             regex=conf.accounts_settings.NICK_REGEX,
                             min_length=conf.accounts_settings.NICK_MIN_LENGTH,
                             max_length=conf.accounts_settings.NICK_MAX_LENGTH)

    email = fields.EmailField(label='Email (логин)')

    password = fields.PasswordField(label='Новый пароль', required=False)
예제 #2
0
class LoginForm(forms.Form):

    email = fields.EmailField(label='Email')
    password = fields.PasswordField(label='Пароль')
    remember = fields.BooleanField(label='Запомнить меня', required=False)