﻿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
5532	Adding user via admin site doesn't work if TEMPLATE_STRING_IF_INVALID is defined	Raphaël Hertzog <raphael@…>	nobody	"I use TEMPLATE_STRING_IF_INVALID during development to catch quickly errors in my templates. However this breaks the ""Add user"" functionality of the admin interface. That's because ""form_url"" is not defined in the template parameters of user_add_stage in
django/contrib/admin/views/auth.py ... and thus the template creates a form with a bad action parameter (instead of letting the parmater empty).

There might be other similar instances elsewhere in the code, I haven't checked.

{{{
--- tmp/auth.py 2007-09-18 16:04:46.000000000 +0200
+++ django/contrib/admin/views/auth.py  2007-09-18 16:00:32.000000000 +0200
@@ -30,6 +30,7 @@
     return render_to_response('admin/auth/user/add_form.html', {
         'title': _('Add user'),
         'form': form,
+        'form_url': '',
         'is_popup': '_popup' in request.REQUEST,
         'add': True,
         'change': False,
}}}"		closed	contrib.admin	dev		duplicate			Unreviewed	1	0	0	0	0	0
