﻿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
9051	Adding a user in the admin site relies on TEMPLATE_STRING_IF_INVALID	TheShark	nobody	"The form action for the new user form ends up with the value of TEMPLATE_STRING_IF_INVALID appended onto the end of it.For example, putting
TEMPLATE_STRING_IF_INVALID = ""Unknown""
into settings.py results in /admin/auth/user/add/ having this action, which can't be submitted.
<form action=""Unknown"" method=""post"" id=""user_form"">

Changing the form template file templates/admin/change_form.html so that the action line is generated with an {% if form_url %} prevents this. There may be other templates with this same bug. There are some with similar variable expansions in the 'action=' field, but I don't know if they are ever called with unset variables.

<form {% if has_file_field %}enctype=""multipart/form-data"" {% endif %}action=""{% if form_url %}{{ form_url }}{% endif %}"" method=""post"" id=""{{ opts.module_name }}_form"">{% block form_top %}{% endblock %}
"		closed	Uncategorized	1.0		duplicate			Unreviewed	0	0	0	0	0	0
