Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix translation in signup form

gigimon8b683850164e
diff --git a/saleor/account/forms.py b/saleor/account/forms.py
index 89b32ca7c8..3861ccf7a4 100644
--- a/saleor/account/forms.py
+++ b/saleor/account/forms.py
@@ -78,8 +78,12 @@ class LoginForm(django_forms.AuthenticationForm, FormWithReCaptcha):
class SignupForm(forms.ModelForm, FormWithReCaptcha):
password = forms.CharField(
- widget=forms.PasswordInput)
+ widget=forms.PasswordInput,
+ label=pgettext(
+ 'Password', 'Password'))
email = forms.EmailField(
+ label=pgettext(
+ 'Email', 'Email'),
error_messages={
'unique': pgettext_lazy(
'Registration error',
@@ -88,11 +92,6 @@ class SignupForm(forms.ModelForm, FormWithReCaptcha):
class Meta:
model = User
fields = ('email',)
- labels = {
- 'email': pgettext_lazy(
- 'Email', 'Email'),
- 'password': pgettext_lazy(
- 'Password', 'Password')}
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)