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
This commit is contained in:
Luke Plant 2011-06-04 21:51:13 +00:00
parent fc508fd5d2
commit 0b7fc04691
8 changed files with 9 additions and 9 deletions

View File

@ -32,7 +32,7 @@
{% else %} {% 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> <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> <ul>{{ deleted_objects|unordered_list }}</ul>
<form action="." method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
<div> <div>
<input type="hidden" name="post" value="yes" /> <input type="hidden" name="post" value="yes" />
<input type="submit" value="{% trans "Yes, I'm sure" %}" /> <input type="submit" value="{% trans "Yes, I'm sure" %}" />

View File

@ -33,7 +33,7 @@
{% for deletable_object in deletable_objects %} {% for deletable_object in deletable_objects %}
<ul>{{ deletable_object|unordered_list }}</ul> <ul>{{ deletable_object|unordered_list }}</ul>
{% endfor %} {% endfor %}
<form action="." method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
<div> <div>
{% for obj in queryset %} {% for obj in queryset %}
<input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" /> <input type="hidden" name="{{ action_checkbox_name }}" value="{{ obj.pk|unlocalize }}" />

View File

@ -1,7 +1,7 @@
{% load adminmedia %} {% load adminmedia %}
{% load i18n %} {% load i18n %}
{% if cl.search_fields %} {% 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 --> <div><!-- DIV needed for valid HTML -->
<label for="searchbar"><img src="{% admin_media_prefix %}img/admin/icon_searchbox.png" alt="Search" /></label> <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" /> <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" />

View File

@ -9,7 +9,7 @@
{% block content %}<div id="content-main"> {% block content %}<div id="content-main">
<form action="." method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
<div> <div>
{% if form.errors %} {% if form.errors %}
<p class="errornote"> <p class="errornote">

View File

@ -13,7 +13,7 @@
<p>{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}</p> <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 }} {{ form.new_password1.errors }}
<p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p> <p class="aligned wide"><label for="id_new_password1">{% trans 'New password:' %}</label>{{ form.new_password1 }}</p>
{{ form.new_password2.errors }} {{ form.new_password2.errors }}

View File

@ -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> <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 }} {{ form.email.errors }}
<p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p> <p><label for="id_email">{% trans 'E-mail address:' %}</label> {{ form.email }} <input type="submit" value="{% trans 'Reset my password' %}" /></p>
</form> </form>

View File

@ -4,7 +4,7 @@
{% if form.errors %}<h1>Please correct the following errors</h1>{% else %}<h1>Submit</h1>{% endif %} {% 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> <table>
{{ form }} {{ form }}
</table> </table>

View File

@ -15,7 +15,7 @@
<p>Security hash: {{ hash_value }}</p> <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 }} {% for field in form %}{{ field.as_hidden }}
{% endfor %} {% endfor %}
<input type="hidden" name="{{ stage_field }}" value="2" /> <input type="hidden" name="{{ stage_field }}" value="2" />
@ -25,7 +25,7 @@
<h1>Or edit it again</h1> <h1>Or edit it again</h1>
<form action="." method="post">{% csrf_token %} <form action="" method="post">{% csrf_token %}
<table> <table>
{{ form }} {{ form }}
</table> </table>