django__django-16139
Accessing UserAdmin via to_field leads to link to PasswordResetForm being broken (404)
Verdict: the fix is stated in the issue (Tier A).
It's as simple as replacing password.help_text = password.help_text.format("../password/") with password.help_text = password.help_text.format(f"../../{self.instance.pk}/password/")
The text states the fix: “It's as simple as replacing password.help_text = password.help_text.format("../password/") with password.help_text = password.help_text.format(f"../../{self.instance.pk}…”
All SWE-bench Verified tasks · more django/django tasks · How the check works