diff --git a/django/contrib/admin/templates/admin/auth/user/change_password.html b/django/contrib/admin/templates/admin/auth/user/change_password.html
index 8bbc448..bfffd2a 100644
a
|
b
|
|
35 | 35 | <div class="form-row"> |
36 | 36 | {{ form.password1.errors }} |
37 | 37 | {{ form.password1.label_tag }} {{ form.password1 }} |
| 38 | {% if form.password1.help_text %} |
| 39 | <p class="help">{{ form.password1.help_text }}</p> |
| 40 | {% endif %} |
38 | 41 | </div> |
39 | 42 | |
40 | 43 | <div class="form-row"> |
41 | 44 | {{ form.password2.errors }} |
42 | 45 | {{ form.password2.label_tag }} {{ form.password2 }} |
43 | | <p class="help">{% trans 'Enter the same password as above, for verification.' %}</p> |
| 46 | {% if form.password2.help_text %} |
| 47 | <p class="help">{{ form.password2.help_text }}</p> |
| 48 | {% endif %} |
44 | 49 | </div> |
45 | 50 | |
46 | 51 | </fieldset> |
diff --git a/django/contrib/admin/templates/registration/password_change_form.html b/django/contrib/admin/templates/registration/password_change_form.html
index 6c1118d..1e641dc 100644
a
|
b
|
|
35 | 35 | <div class="form-row"> |
36 | 36 | {{ form.new_password1.errors }} |
37 | 37 | {{ form.new_password1.label_tag }} {{ form.new_password1 }} |
| 38 | {% if form.new_password1.help_text %} |
| 39 | <p class="help">{{ form.new_password1.help_text }}</p> |
| 40 | {% endif %} |
38 | 41 | </div> |
39 | 42 | |
40 | 43 | <div class="form-row"> |
41 | 44 | {{ form.new_password2.errors }} |
42 | 45 | {{ form.new_password2.label_tag }} {{ form.new_password2 }} |
| 46 | {% if form.new_password2.help_text %} |
| 47 | <p class="help">{{ form.new_password2.help_text }}</p> |
| 48 | {% endif %} |
43 | 49 | </div> |
44 | 50 | |
45 | 51 | </fieldset> |
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py
index 86cfa29..c14b8f8 100644
a
|
b
|
class AdminPasswordChangeForm(forms.Form):
|
340 | 340 | password1 = forms.CharField(label=_("Password"), |
341 | 341 | widget=forms.PasswordInput) |
342 | 342 | password2 = forms.CharField(label=_("Password (again)"), |
343 | | widget=forms.PasswordInput) |
| 343 | widget=forms.PasswordInput, |
| 344 | help_text=_("Enter the same password as above, for verification.")) |
344 | 345 | |
345 | 346 | def __init__(self, user, *args, **kwargs): |
346 | 347 | self.user = user |