Author: jacob
Date: 2009-05-08 07:58:57 -0500 (Fri, 08 May 2009)
New Revision: 10715

Modified:
   
django/branches/releases/1.0.X/django/contrib/admin/templates/admin/change_form.html
Log:
[1.0.X] Fixed #10651: fixed a javascript error on the admin user add form. 
Thanks, seanl. Backport of [10714] from trunk.

Modified: 
django/branches/releases/1.0.X/django/contrib/admin/templates/admin/change_form.html
===================================================================
--- 
django/branches/releases/1.0.X/django/contrib/admin/templates/admin/change_form.html
        2009-05-08 12:57:57 UTC (rev 10714)
+++ 
django/branches/releases/1.0.X/django/contrib/admin/templates/admin/change_form.html
        2009-05-08 12:58:57 UTC (rev 10715)
@@ -54,7 +54,7 @@
 
 {% submit_row %}
 
-{% if add %}
+{% if adminform and add %}
    <script type="text/javascript">document.getElementById("{{ 
adminform.first_field.auto_id }}").focus();</script>
 {% endif %}
 


--~--~---------~--~----~------------~-------~--~----~
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