fix: translations
This commit is contained in:
@@ -9,14 +9,19 @@ from web.mixins import StylingMixin
|
||||
|
||||
|
||||
class PasswordResetForm(StylingMixin, BasePasswordResetForm):
|
||||
styled_fields = ['email', ]
|
||||
styled_fields = [
|
||||
"email",
|
||||
]
|
||||
placeholder_for_field = {
|
||||
"email": _("pablo@shoppy.com"),
|
||||
}
|
||||
|
||||
|
||||
class SetPasswordForm(StylingMixin, BaseSetPasswordForm):
|
||||
styled_fields = ['new_password1', 'new_password2', ]
|
||||
styled_fields = [
|
||||
"new_password1",
|
||||
"new_password2",
|
||||
]
|
||||
placeholder_for_field = {
|
||||
"new_password1": "********",
|
||||
"new_password2": "********",
|
||||
@@ -40,6 +45,6 @@ class SetPasswordForm(StylingMixin, BaseSetPasswordForm):
|
||||
try:
|
||||
self.validate_token()
|
||||
except ValidationError as e:
|
||||
self.add_error('token', str(e))
|
||||
self.add_error("token", str(e))
|
||||
return False
|
||||
return super().is_valid()
|
||||
|
||||
Reference in New Issue
Block a user