diff options
| author | Claude Paroz <claude@2xlibre.net> | 2017-04-19 19:48:06 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2017-04-22 15:39:15 +0200 |
| commit | c52ae33a0c0c0bbaa460607a8787e95fe983a2b9 (patch) | |
| tree | 17c1e3abc2b3f0a80ece72bdf7dcbe7186a2ea60 | |
| parent | 3e91850dccecd13dde8cef7b81c798217f74a301 (diff) | |
Fixed #28100 -- Removed link in UserChangeForm.password's translatable help_text
| -rw-r--r-- | django/contrib/auth/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/contrib/auth/forms.py b/django/contrib/auth/forms.py index 1f78dfa142..1242f7079a 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 " - "<a href=\"../password/\">this form</a>." + "<a href=\"{}\">this form</a>." ), ) @@ -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') |
