Author: lukeplant Date: 2011-06-04 14:51:13 -0700 (Sat, 04 Jun 2011) New Revision: 16330
Modified: django/trunk/django/contrib/admin/templates/admin/delete_confirmation.html django/trunk/django/contrib/admin/templates/admin/delete_selected_confirmation.html django/trunk/django/contrib/admin/templates/admin/search_form.html django/trunk/django/contrib/admin/templates/registration/password_change_form.html django/trunk/django/contrib/admin/templates/registration/password_reset_confirm.html django/trunk/django/contrib/admin/templates/registration/password_reset_form.html django/trunk/django/contrib/formtools/templates/formtools/form.html django/trunk/django/contrib/formtools/templates/formtools/preview.html Log: Reverted most of [16051], because it was thoroughly incorrect (whatever some validator says) Refs #16154 Modified: django/trunk/django/contrib/admin/templates/admin/delete_confirmation.html =================================================================== --- django/trunk/django/contrib/admin/templates/admin/delete_confirmation.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/admin/delete_confirmation.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -32,7 +32,7 @@ {% else %} <p>{% blocktrans with object as escaped_object %}Are you sure you want to delete the {{ object_name }} "{{ escaped_object }}"? All of the following related items will be deleted:{% endblocktrans %}</p> <ul>{{ deleted_objects|unordered_list }}</ul> - <form action="." method="post">{% csrf_token %} + <form action="" method="post">{% csrf_token %} <div> <input type="hidden" name="post" value="yes" /> <input type="submit" value="{% trans "Yes, I'm sure" %}" /> Modified: django/trunk/django/contrib/admin/templates/admin/delete_selected_confirmation.html =================================================================== --- django/trunk/django/contrib/admin/templates/admin/delete_selected_confirmation.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/admin/delete_selected_confirmation.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -33,7 +33,7 @@ {% for deletable_object in deletable_objects %} <ul>{{ deletable_object|unordered_list }}</ul> {% endfor %} - <form action="." method="post">{% csrf_token %} + <form action="" method="post">{% csrf_token %} <div> {% for obj in queryset %} <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" /> Modified: django/trunk/django/contrib/admin/templates/admin/search_form.html =================================================================== --- django/trunk/django/contrib/admin/templates/admin/search_form.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/admin/search_form.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -1,7 +1,7 @@ {% load adminmedia %} {% load i18n %} {% if cl.search_fields %} -<div id="toolbar"><form id="changelist-search" action="." method="get"> +<div id="toolbar"><form id="changelist-search" action="" method="get"> <div><!-- DIV needed for valid HTML --> <label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label> <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" /> Modified: django/trunk/django/contrib/admin/templates/registration/password_change_form.html =================================================================== --- django/trunk/django/contrib/admin/templates/registration/password_change_form.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/registration/password_change_form.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -9,7 +9,7 @@ {% block content %}<div id="content-main"> -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} <div> {% if form.errors %} <p class="errornote"> Modified: django/trunk/django/contrib/admin/templates/registration/password_reset_confirm.html =================================================================== --- django/trunk/django/contrib/admin/templates/registration/password_reset_confirm.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/registration/password_reset_confirm.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -13,7 +13,7 @@ <p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p> -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} {{ form.new_password1.errors }} <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> {{ form.new_password2.errors }} Modified: django/trunk/django/contrib/admin/templates/registration/password_reset_form.html =================================================================== --- django/trunk/django/contrib/admin/templates/registration/password_reset_form.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/admin/templates/registration/password_reset_form.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -11,7 +11,7 @@ <p>{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}</p> -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} {{ form.email.errors }} <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p> </form> Modified: django/trunk/django/contrib/formtools/templates/formtools/form.html =================================================================== --- django/trunk/django/contrib/formtools/templates/formtools/form.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/formtools/templates/formtools/form.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -4,7 +4,7 @@ {% if form.errors %}<h1>Please correct the following errors</h1>{% else %}<h1>Submit</h1>{% endif %} -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} <table> {{ form }} </table> Modified: django/trunk/django/contrib/formtools/templates/formtools/preview.html =================================================================== --- django/trunk/django/contrib/formtools/templates/formtools/preview.html 2011-06-04 21:42:53 UTC (rev 16329) +++ django/trunk/django/contrib/formtools/templates/formtools/preview.html 2011-06-04 21:51:13 UTC (rev 16330) @@ -15,7 +15,7 @@ <p>Security hash: {{ hash_value }}</p> -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} {% for field in form %}{{ field.as_hidden }} {% endfor %} <input type="hidden" name="{{ stage_field }}" value="2" /> @@ -25,7 +25,7 @@ <h1>Or edit it again</h1> -<form action="." method="post">{% csrf_token %} +<form action="" method="post">{% csrf_token %} <table> {{ form }} </table> -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.