Author: jacob
Date: 2009-05-08 07:57:57 -0500 (Fri, 08 May 2009)
New Revision: 10714
Modified:
django/trunk/django/contrib/admin/templates/admin/change_form.html
Log:
Fixed #10651: fixed a javascript error on the admin user add form. Thanks,
seanl.
Modified: django/trunk/django/contrib/admin/templates/admin/change_form.html
===================================================================
--- django/trunk/django/contrib/admin/templates/admin/change_form.html
2009-05-08 12:53:14 UTC (rev 10713)
+++ django/trunk/django/contrib/admin/templates/admin/change_form.html
2009-05-08 12:57:57 UTC (rev 10714)
@@ -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
-~----------~----~----~----~------~----~------~--~---