diff options
author | CHI Cheng <cloudream@gmail.com> | 2018-05-02 23:20:04 +1000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-05-02 09:20:04 -0400 |
commit | 4660ce5a6930e07899ed083801845ee4c44c09df (patch) | |
tree | fb30d82cab0e71391bf050c02bd95d35fd1ecc25 /tests/templates | |
parent | c02953ebbce805427a08985e674a3d4457ca1be8 (diff) | |
download | django-4660ce5a6930e07899ed083801845ee4c44c09df.tar.gz |
Fixed #29375 -- Removed empty action attribute on HTML forms.
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 1ef410fb71..16945a018c 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"> {% 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 d9909aea60..ddc3224009 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"> <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> |