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:35:26 -0400 |
| commit | 482ba9246e1838378a7e320c247fa7338ca49b40 (patch) | |
| tree | c676d1e9a5516ce413f8f59059e701392ce811d7 /docs/ref/class-based-views | |
| parent | 30038300085b21fc1a8afe54a1c6e9eebbd6db47 (diff) | |
[2.0.x] Fixed #29375 -- Removed empty action attribute on HTML forms.
Backport of 4660ce5a6930e07899ed083801845ee4c44c09df from master
Diffstat (limited to 'docs/ref/class-based-views')
| -rw-r--r-- | docs/ref/class-based-views/generic-editing.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/ref/class-based-views/generic-editing.txt b/docs/ref/class-based-views/generic-editing.txt index 65cd772536..b4bf7e9480 100644 --- a/docs/ref/class-based-views/generic-editing.txt +++ b/docs/ref/class-based-views/generic-editing.txt @@ -74,7 +74,7 @@ editing content: .. code-block:: html+django - <form action="" method="post">{% csrf_token %} + <form method="post">{% csrf_token %} {{ form.as_p }} <input type="submit" value="Send message" /> </form> @@ -130,7 +130,7 @@ editing content: .. code-block:: html+django - <form action="" method="post">{% csrf_token %} + <form method="post">{% csrf_token %} {{ form.as_p }} <input type="submit" value="Save" /> </form> @@ -187,7 +187,7 @@ editing content: .. code-block:: html+django - <form action="" method="post">{% csrf_token %} + <form method="post">{% csrf_token %} {{ form.as_p }} <input type="submit" value="Update" /> </form> @@ -238,7 +238,7 @@ editing content: .. code-block:: html+django - <form action="" method="post">{% csrf_token %} + <form method="post">{% csrf_token %} <p>Are you sure you want to delete "{{ object }}"?</p> <input type="submit" value="Confirm" /> </form> |
