﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13537	changing password in admin with TEMPLATE_STRING_IF_INVALID is broken.	david.arakelian@…	nobody	"
Running django 1.2 rc 1 SVN-13260 in my settings I have 


{{{
TEMPLATE_STRING_IF_INVALID = '!invalid var!'
}}}


When I try to change the User password (change password form)
I got an exception

You called this URL via POST, but the URL doesn't end in a slash and you have APPEND_SLASH set. Django can't redirect to the slash URL while maintaining POST data. Change your form to point to xxx.com:7777/admin/auth/user/2/password/!Invalid Var!/ (note the trailing slash), or set APPEND_SLASH=False in your Django settings.

It seems that the file :
django/contrib/admin/templates/admin/auth/user/change_password.html is causing this error.
A quick fix will be:

Line 19:

{{{
<form action=""{% if form_url %}{{ form_url }}{% endif %}"" method=""post"" id=""{{ opts.module_name }}_form"">{% csrf_token %}{% block form_top %}{% endblock %}

}}}

Iinstead of:

{{{
<form action=""{{ form_url }}"" method=""post"" id=""{{ opts.module_name }}_form"">{% csrf_token %}{% block form_top %}{% endblock %}
}}}


"		closed	contrib.admin	dev		duplicate	admin password, TEMPLATE_STRING_IF_INVALID		Unreviewed	1	0	0	1	0	0
