Browse files

[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...
1 parent 4f383e2 commit cd4f12d116c0639b2c17b7affed9fa5c1d9b8153 @jacobian jacobian committed May 8, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/templates/admin/change_form.html
View
2 django/contrib/admin/templates/admin/change_form.html
@@ -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 %}

0 comments on commit cd4f12d

Please sign in to comment.