Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #10651: fixed a javascript error on the admin user add form. Th…

…anks, seanl.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@10714 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f7d01c49e95a9ed25dd75e6b3d4c063dff58e23a 1 parent 23fa913
@jacobian jacobian authored
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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.