Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #10651: fixed a javascript error on the admin user add …

…form. Thanks, seanl. Backport of [10714] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit cd4f12d116c0639b2c17b7affed9fa5c1d9b8153 1 parent 4f383e2
Jacob Kaplan-Moss authored May 08, 2009
2  django/contrib/admin/templates/admin/change_form.html
@@ -54,7 +54,7 @@
54 54
 
55 55
 {% submit_row %}
56 56
 
57  
-{% if add %}
  57
+{% if adminform and add %}
58 58
    <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script>
59 59
 {% endif %}
60 60
 

0 notes on commit cd4f12d

Please sign in to comment.
Something went wrong with that request. Please try again.