Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Adrian Holovaty authored August 12, 2006
2  django/contrib/admin/templates/admin/change_form.html
@@ -21,7 +21,7 @@
21 21
   {% if has_absolute_url %}<li><a href="../../../r/{{ content_type_id }}/{{ object_id }}/" class="viewsitelink">{% trans "View on site" %}</a></li>{% endif%}
22 22
   </ul>
23 23
 {% endif %}{% endif %}
24  
-<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post">{% block form_top %}{% endblock %}
  24
+<form {% if has_file_field %}enctype="multipart/form-data" {% endif %}action="{{ form_url }}" method="post" id="{{ opts.module_name }}_form">{% block form_top %}{% endblock %}
25 25
 <div>
26 26
 {% if is_popup %}<input type="hidden" name="_popup" value="1" />{% endif %}
27 27
 {% if opts.admin.save_on_top %}{% submit_row %}{% endif %}

0 notes on commit 9354cfb

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