If password is get successfully {{{help_text}}} is supplied with
{{{'../password/'}}} path:
{{{
help_text=_(...but you can change the password using <a href="{}">this
form</a>.),
***
if password:
password.help_text = password.help_text.format('../password/')
}}}
But aimed form has {{{password_change}}} URL in
[https://github.com/django/django/blob/stable/3.0.x/django/contrib/auth/urls.py#L13
auth/urls.py]:
{{{
path('password_change/', views.PasswordChangeView.as_view(),
name='password_change'),
}}}
And there is no easy way to substitute it (I mean it's a hardcoded string)
--
Ticket URL: <https://code.djangoproject.com/ticket/31593>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* owner: nobody => Denis
* status: new => assigned
Comment:
It's my first ticket and fix.
I have fixed it locally and it works fine:
{{{
from django.urls import reverse
***
password.help_text = password.help_text.format(reverse('password_change'))
}}}
Is it **trivial** or requires a patch?
--
Ticket URL: <https://code.djangoproject.com/ticket/31593#comment:1>