[1.3.X] Fixed #15887 - Added clarification for required_*() decorators; thanks RoySmith for the sugggestion.
Backport of r16139 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16140 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b44757ce51
commit
fa261ea432
@ -10,8 +10,9 @@ various HTTP features.
|
|||||||
Allowed HTTP methods
|
Allowed HTTP methods
|
||||||
====================
|
====================
|
||||||
|
|
||||||
The following decorators in :mod:`django.views.decorators.http` can be used to
|
The decorators in :mod:`django.views.decorators.http` can be used to restrict
|
||||||
restrict access to views based on the request method.
|
access to views based on the request method. These decorators will return
|
||||||
|
a :class:`django.http.HttpResponseNotAllowed` if the conditions are not met.
|
||||||
|
|
||||||
.. function:: require_http_methods(request_method_list)
|
.. function:: require_http_methods(request_method_list)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user