#13537: changing password in admin with TEMPLATE_STRING_IF_INVALID is broken. --------------------------------------------------------+------------------- Reporter: david.arakel...@madebybusara.com | Owner: nobody Status: new | Milestone: 1.2 Component: django.contrib.admin | Version: SVN Keywords: admin password, TEMPLATE_STRING_IF_INVALID | Stage: Unreviewed Has_patch: 1 | --------------------------------------------------------+------------------- 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 %} }}} -- Ticket URL: <http://code.djangoproject.com/ticket/13537> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.