#10651: auth app add user page causes javascript error due to admin change_form
assuming presence of adminform object
----------------------------------+-----------------------------------------
 Reporter:  seanl                 |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  SVN       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 The contrib.auth add user page (add_form.html) causes a javascript error.
 This is due to the extended change_form.html inserting the following
 because of a missing adminform object in the context:

 {{{ <script
 type="text/javascript">document.getElementById("").focus();</script> }}}

 The attached patch fixes this by having change_form.html check for
 presence of adminform and skipping the above line if it isn't present
 (which is correct because add_form.html has a hard-coded version of the
 same JS to set focus to the username field).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/10651>
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-updates@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to