mirror of
https://github.com/django/django.git
synced 2025-07-23 13:15:32 +00:00
Fixed typos in HTTP decorator docs.
This commit is contained in:
parent
6128005d90
commit
0b0bb6100d
2 changed files with 7 additions and 7 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue