mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Reworded contrib.auth forms' password confirmation help_text.
"As above" refers to a spatial orientation, which might not be present, for example when the two password fields are shown next to each other.
This commit is contained in:
		@@ -72,7 +72,7 @@ class UserCreationForm(forms.ModelForm):
 | 
				
			|||||||
        widget=forms.PasswordInput)
 | 
					        widget=forms.PasswordInput)
 | 
				
			||||||
    password2 = forms.CharField(label=_("Password confirmation"),
 | 
					    password2 = forms.CharField(label=_("Password confirmation"),
 | 
				
			||||||
        widget=forms.PasswordInput,
 | 
					        widget=forms.PasswordInput,
 | 
				
			||||||
        help_text=_("Enter the same password as above, for verification."))
 | 
					        help_text=_("Enter the same password as before, for verification."))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    class Meta:
 | 
					    class Meta:
 | 
				
			||||||
        model = User
 | 
					        model = User
 | 
				
			||||||
@@ -339,7 +339,7 @@ class AdminPasswordChangeForm(forms.Form):
 | 
				
			|||||||
    password2 = forms.CharField(
 | 
					    password2 = forms.CharField(
 | 
				
			||||||
        label=_("Password (again)"),
 | 
					        label=_("Password (again)"),
 | 
				
			||||||
        widget=forms.PasswordInput,
 | 
					        widget=forms.PasswordInput,
 | 
				
			||||||
        help_text=_("Enter the same password as above, for verification."),
 | 
					        help_text=_("Enter the same password as before, for verification."),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __init__(self, user, *args, **kwargs):
 | 
					    def __init__(self, user, *args, **kwargs):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user