diff options
| author | I am Clinton <garwoodpr@users.noreply.github.com> | 2015-05-24 08:30:51 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-05-25 07:39:06 -0400 |
| commit | 87934c4b6885351aa6a12221191770da71087dfa (patch) | |
| tree | bea742f9251e12c22c654f7469f2e41ff4b697b1 /docs | |
| parent | 9def46c1c33468666b99a10b0237c7c1528bf7a5 (diff) | |
[1.8.x] Fixed typos in HTTP decorator docs.
Backport of 0b0bb6100d90d387d7f38e87a4051a1ef513b7c7 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/http/decorators.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/topics/http/decorators.txt b/docs/topics/http/decorators.txt index 25616a44c0..277aaa3bb1 100644 --- a/docs/topics/http/decorators.txt +++ b/docs/topics/http/decorators.txt @@ -16,7 +16,7 @@ a :class:`django.http.HttpResponseNotAllowed` if the conditions are not met. .. function:: require_http_methods(request_method_list) - Decorator to require that a view only accept particular request + Decorator to require that a view only accepts particular request methods. Usage:: from django.views.decorators.http import require_http_methods @@ -31,15 +31,15 @@ a :class:`django.http.HttpResponseNotAllowed` if the conditions are not met. .. function:: require_GET() - Decorator to require that a view only accept the GET method. + Decorator to require that a view only accepts the GET method. .. function:: require_POST() - Decorator to require that a view only accept the POST method. + Decorator to require that a view only accepts the POST method. .. function:: require_safe() - Decorator to require that a view only accept the GET and HEAD methods. + Decorator to require that a view only accepts the GET and HEAD methods. These methods are commonly considered "safe" because they should not have the significance of taking an action other than retrieving the requested resource. |
