From c52ae33a0c0c0bbaa460607a8787e95fe983a2b9 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 19 Apr 2017 19:48:06 +0200 Subject: [PATCH] Fixed #28100 -- Removed link in UserChangeForm.password's translatable help_text --- django/contrib/auth/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index 1f78dfa1421..1242f7079a2 100644 --- a/django/contrib/auth/forms.py +++ b/django/contrib/auth/forms.py @@ -118,7 +118,7 @@ class UserChangeForm(forms.ModelForm): help_text=_( "Raw passwords are not stored, so there is no way to see this " "user's password, but you can change the password using " - "this form." + "this form." ), ) @@ -129,6 +129,7 @@ class UserChangeForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) + self.fields['password'].help_text = self.fields['password'].help_text.format('../password/') f = self.fields.get('user_permissions') if f is not None: f.queryset = f.queryset.select_related('content_type')