summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2009-05-08 12:57:57 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2009-05-08 12:57:57 +0000
commitf7d01c49e95a9ed25dd75e6b3d4c063dff58e23a (patch)
tree958d9efcd49ff294f188d884a95a6acc8cc62b2a
parent23fa913676d66ce4d32501618b1b74e8b2dca5fc (diff)
Fixed #10651: fixed a javascript error on the admin user add form. Thanks, seanl.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/admin/templates/admin/change_form.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/change_form.html b/django/contrib/admin/templates/admin/change_form.html
index 2fb17bb943..f645d65a0f 100644
--- a/django/contrib/admin/templates/admin/change_form.html
+++ b/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 %}