Ticket #10651: 10651-change-form-checks-for-adminform-object.diff

File 10651-change-form-checks-for-adminform-object.diff, 490 bytes (added by Sean Legassick, 16 years ago)
  • django/contrib/admin/templates/admin/change_form.html

     
    5454
    5555{% submit_row %}
    5656
    57 {% if add %}
     57{% if adminform and add %}
    5858   <script type="text/javascript">document.getElementById("{{ adminform.first_field.auto_id }}").focus();</script>
    5959{% endif %}
    6060
Back to Top