diff options
author | Luke Plant <L.Plant.98@cantab.net> | 2011-06-04 21:51:13 +0000 |
---|---|---|
committer | Luke Plant <L.Plant.98@cantab.net> | 2011-06-04 21:51:13 +0000 |
commit | 0b7fc04691f838e644d9526208aabcbe928c8fac (patch) | |
tree | ea0a8c105298c68011e12f9c2130813abe8b233e /django/contrib | |
parent | fc508fd5d2257d02947942adf9eeadca61d000c4 (diff) | |
download | django-0b7fc04691f838e644d9526208aabcbe928c8fac.tar.gz |
Reverted most of [16051], because it was thoroughly incorrect (whatever some validator says)
Refs #16154
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16330 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib')
8 files changed, 9 insertions, 9 deletions
diff --git a/django/contrib/admin/templates/admin/delete_confirmation.html b/django/contrib/admin/templates/admin/delete_confirmation.html index 9187b6035b..0e6d47e68d 100644 --- a/django/contrib/admin/templates/admin/delete_confirmation.html +++ b/django/contrib/admin/templates/admin/delete_confirmation.html @@ -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" %}" /> diff --git a/django/contrib/admin/templates/admin/delete_selected_confirmation.html b/django/contrib/admin/templates/admin/delete_selected_confirmation.html index cedf14e6d2..127519bea7 100644 --- a/django/contrib/admin/templates/admin/delete_selected_confirmation.html +++ b/django/contrib/admin/templates/admin/delete_selected_confirmation.html @@ -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 }}" /> diff --git a/django/contrib/admin/templates/admin/search_form.html b/django/contrib/admin/templates/admin/search_form.html index b53fe428da..3e14a110eb 100644 --- a/django/contrib/admin/templates/admin/search_form.html +++ b/django/contrib/admin/templates/admin/search_form.html @@ -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" /> diff --git a/django/contrib/admin/templates/registration/password_change_form.html b/django/contrib/admin/templates/registration/password_change_form.html index d313a79dd1..23d6c1d8af 100644 --- a/django/contrib/admin/templates/registration/password_change_form.html +++ b/django/contrib/admin/templates/registration/password_change_form.html @@ -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"> diff --git a/django/contrib/admin/templates/registration/password_reset_confirm.html b/django/contrib/admin/templates/registration/password_reset_confirm.html index 546ae0feba..df9cf1b316 100644 --- a/django/contrib/admin/templates/registration/password_reset_confirm.html +++ b/django/contrib/admin/templates/registration/password_reset_confirm.html @@ -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 }} diff --git a/django/contrib/admin/templates/registration/password_reset_form.html b/django/contrib/admin/templates/registration/password_reset_form.html index 575e237726..d3a128428a 100644 --- a/django/contrib/admin/templates/registration/password_reset_form.html +++ b/django/contrib/admin/templates/registration/password_reset_form.html @@ -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> diff --git a/django/contrib/formtools/templates/formtools/form.html b/django/contrib/formtools/templates/formtools/form.html index cfb5c6cb52..2f2de1f637 100644 --- a/django/contrib/formtools/templates/formtools/form.html +++ b/django/contrib/formtools/templates/formtools/form.html @@ -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> diff --git a/django/contrib/formtools/templates/formtools/preview.html b/django/contrib/formtools/templates/formtools/preview.html index dea3a99b04..eb88b1ec2e 100644 --- a/django/contrib/formtools/templates/formtools/preview.html +++ b/django/contrib/formtools/templates/formtools/preview.html @@ -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> |