Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #2410 -- Added HTML ID attribute to <form> on admin change-list…

… pages, for easy targetting with JavaScript and CSS

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3568 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 9354cfb6ce0232564dfbbccb33ccdfe2cc4dba43 1 parent aa587cd
@adrianholovaty adrianholovaty 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
@@ -21,7 +21,7 @@
{% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
</ul>
{% endif %}{% endif %}
-<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post">{% block form_top %}{% endblock %}
+<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
<div>
{% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
{% if opts.admin.save_on_top %}{% submit_row %}{% endif %}

0 comments on commit 9354cfb

Please sign in to comment.
Something went wrong with that request. Please try again.