X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Fedit%2Fforms.py;h=e2882adad02d41440a0c621c4edae6a19d88a3d0;hb=e17525189943a091468541b93a357a64c32e2b51;hp=46ee02e2292ec8a035d0b328cb572bd9047a0407;hpb=cf29e8a824e0ef4612f1144f079c80c1d20b89e5;p=mediagoblin.git diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 46ee02e2..e2882ada 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -55,20 +55,21 @@ class EditProfileForm(wtforms.Form): url = wtforms.TextField( _('Website'), [wtforms.validators.Optional(), - wtforms.validators.URL(message="""This address contains errors""")]) + wtforms.validators.URL(message=_("This address contains errors"))]) class EditAccountForm(wtforms.Form): old_password = wtforms.PasswordField( _('Old password'), - [wtforms.validators.Required()], description=_( "Enter your old password to prove you own this account.")) new_password = wtforms.PasswordField( _('New password'), - [wtforms.validators.Required(), - wtforms.validators.Length(min=6, max=30)], + [wtforms.validators.Length(min=6, max=30)], id="password") + wants_comment_notification = wtforms.BooleanField( + _(''), + description=_("Email me when others comment on my media")) class EditAttachmentsForm(wtforms.Form):