Opened 16 years ago

Closed 13 years ago

#8052 closed Bug (fixed)

Password Change Forms overrides userlinks

Reported by: Django Trac Owned by:
Component: contrib.admin Version: dev
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 16 years ago.

Download all attachments as: .zip

Change History (8)

by Django Trac, 16 years ago

Attachment: password_change_8052.diff added

comment:1 by Eric Holscher, 16 years ago

Component: UncategorizedAdmin interface
Has patch: set
Owner: changed from nobody to Eric Holscher
Status: newassigned

comment:2 by Eric Holscher, 16 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Eric Holscher, 16 years ago

Owner: Eric Holscher removed
Status: assignednew

comment:4 by zegor, 16 years ago

Summary: Password Change Form overrides userlinksPassword Change Forms overrides userlinks

Same problem in password_change_done.html

comment:5 by Karen Tracey, 16 years ago

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 by Luke Plant, 14 years ago

Severity: Normal
Type: Bug

comment:7 by Ramiro Morales, 13 years ago

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