Opened 8 years ago

Closed 5 years ago

#8052 closed Bug (fixed)

Password Change Forms overrides userlinks

Reported by: Django Trac Owned by:
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Password change form explicitly sets

   {% block userlinks %}

which is preventing custom templates from showing through for that portion of the page.

ie: I have a template called admin/base_site.html which includes the {% block userlinks %} but does not have the documentation link. However on the change password form, the old format (with the Documentation hyperlink), is showing up instead.

A quick flick through the admin templates shows this may be redundant and removing the line fixes it.

SVN 8151

Attachments (1)

password_change_8052.diff (775 bytes) - added by Django Trac 8 years ago.

Download all attachments as: .zip

Change History (8)

Changed 8 years ago by Django Trac

Attachment: password_change_8052.diff added

comment:1 Changed 8 years ago by Eric Holscher

Component: UncategorizedAdmin interface
Has patch: set
Needs documentation: unset
Needs tests: unset
Owner: changed from nobody to Eric Holscher
Patch needs improvement: unset
Status: newassigned

comment:2 Changed 8 years ago by Eric Holscher

Triage Stage: UnreviewedAccepted

comment:3 Changed 8 years ago by Eric Holscher

Owner: Eric Holscher deleted
Status: assignednew

comment:4 Changed 8 years ago by zegor

Summary: Password Change Form overrides userlinksPassword Change Forms overrides userlinks

Same problem in password_change_done.html

comment:5 Changed 8 years ago by Karen Tracey

Patch needs improvement: set

The problem with removing the {% block userlinks %} from password_change_form.html and password_change_done.html is that the "change password" and "logout" links inherited from the default admin/base_site.html are wrong on these pages. #8984 covers fixing the "Documentation" link for these pages, and #8933 proposes making these templates overridable. I think once either of those is fixed, the reason for this ticket goes away, right?

comment:6 Changed 5 years ago by Luke Plant

Severity: Normal
Type: Bug

comment:7 Changed 5 years ago by Ramiro Morales

Easy pickings: unset
Resolution: fixed
Status: newclosed
UI/UX: unset

Fixed in r9079 and r12217. You can now provide your custom templates for change password-related views if you need this kind of customization.

Note: See TracTickets for help on using tickets.
Back to Top