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/forms_tests | |
| parent | 9a33d3d76497d9e198de942ee1236c452231262f (diff) | |
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/forms_tests')
| -rw-r--r-- | tests/forms_tests/templates/forms_tests/article_form.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/forms_tests/templates/forms_tests/article_form.html b/tests/forms_tests/templates/forms_tests/article_form.html index de38466335..8ab7a85bb9 100644 --- a/tests/forms_tests/templates/forms_tests/article_form.html +++ b/tests/forms_tests/templates/forms_tests/article_form.html @@ -1,6 +1,6 @@ <html> <body> - <form method="post" action=".">{% csrf_token %} + <form method="post" action="">{% csrf_token %} {{ form.as_p }}<br> <input id="submit" type="submit"> </form> |
