#5532: Adding user via admin site doesn't work if TEMPLATE_STRING_IF_INVALID is
defined
------------------------------------------------+---------------------------
Reporter:  Raphaƫl Hertzog <[EMAIL PROTECTED]>  |       Owner:  nobody         
  Status:  new                                  |   Component:  Admin interface
 Version:  SVN                                  |    Keywords:                 
   Stage:  Unreviewed                           |   Has_patch:  1              
------------------------------------------------+---------------------------
 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,
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5532>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to