diff options
author | Luke Plant <L.Plant.98@cantab.net> | 2016-01-21 15:54:13 +0000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-01-21 13:59:15 -0500 |
commit | 77974a684a2e874bccd8bd9e0939ddcb367a8ed2 (patch) | |
tree | 81b4b886f71ae85de797be6864838da85f14bb54 /tests/templates | |
parent | 9a33d3d76497d9e198de942ee1236c452231262f (diff) | |
download | django-77974a684a2e874bccd8bd9e0939ddcb367a8ed2.tar.gz |
Changed `action="."` to `action=""` in tests and docs.
`action="."` strips query parameters from the URL which is not usually what
you want. Copy-paste coding of these examples could lead to difficult to
track down bugs or even data loss if the query parameter was meant to alter
the scope of a form's POST request.
Diffstat (limited to 'tests/templates')
-rw-r--r-- | tests/templates/form_view.html | 2 | ||||
-rw-r--r-- | tests/templates/login.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/templates/form_view.html b/tests/templates/form_view.html index a23fd0b657..1ef410fb71 100644 --- a/tests/templates/form_view.html +++ b/tests/templates/form_view.html @@ -2,7 +2,7 @@ {% block title %}Submit data{% endblock %} {% block content %} <h1>{{ message }}</h1> -<form method='post' action='.'> +<form method="post" action=""> {% if form.errors %} <p class='warning'>Please correct the errors below:</p> {% endif %} diff --git a/tests/templates/login.html b/tests/templates/login.html index 7f50df2ba1..0d301600a5 100644 --- a/tests/templates/login.html +++ b/tests/templates/login.html @@ -5,7 +5,7 @@ <p>Your username and password didn't match. Please try again.</p> {% endif %} -<form method="post" action="."> +<form method="post" action=""> <table> <tr><td><label for="id_username">Username:</label></td><td>{{ form.username }}</td></tr> <tr><td><label for="id_password">Password:</label></td><td>{{ form.password }}</td></tr> |