Opened 13 years ago
Closed 13 years ago
#17189 closed Bug (fixed)
form_url not passed to change_password.html
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | contrib.admin | Version: | 1.3 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Hello,
I have put TEMPLATE_STRING_IF_INVALID = 'TAG' in my settings.py. If I go to the admin, open a user and try to modify the password (using the admin password change form), this the (abstract) code that is generated, which of course fails:
<form action="TAG" method="post" id="user_form"><div style='display:none'><input type='hidden' name='csrfmiddlewaretoken' value='e89f493c88a4059f820eb35af0528722' /></div>
<div>
Regards
Attachments (1)
Change History (4)
comment:1 by , 13 years ago
Summary: | Change password admin form uses an undefined template tag → form_url not passed to change_password.html |
---|---|
Triage Stage: | Unreviewed → Accepted |
by , 13 years ago
Attachment: | 17189.patch added |
---|
Fixes passing form_url to change_password.html template
The problem is that no variable
form_url
is passed to thechange_password.html
template.UserAdmin.user_change_password()
could be improved to pass that variable, and also to allow overriding it asUserAdmin.add_view()
already does. See also #7758 for a related issue.