Skip to content
Browse files

Added a 'name' attribute to the 'Save' button on admin change form

This makes it much easier/possible for testing tools e.g. twill to find
the 'Save' submit button.



git-svn-id: http://code.djangoproject.com/svn/django/trunk@8226 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent c396992 commit 7b4b1309d92feab417e48d391482f81e6ba683ee @spookylukey spookylukey committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/templates/admin/submit_line.html
View
2 django/contrib/admin/templates/admin/submit_line.html
@@ -4,5 +4,5 @@
{% if show_save_as_new %}<input type="submit" value="{% trans 'Save as new' %}" name="_saveasnew" {{ onclick_attrib }}/>{%endif%}
{% if show_save_and_add_another %}<input type="submit" value="{% trans 'Save and add another' %}" name="_addanother" {{ onclick_attrib }} />{% endif %}
{% if show_save_and_continue %}<input type="submit" value="{% trans 'Save and continue editing' %}" name="_continue" {{ onclick_attrib }}/>{% endif %}
-{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" {{ onclick_attrib }}/>{% endif %}
+{% if show_save %}<input type="submit" value="{% trans 'Save' %}" class="default" name="_save" {{ onclick_attrib }}/>{% endif %}
</div>

0 comments on commit 7b4b130

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