mirror of
https://github.com/django/django.git
synced 2026-02-09 02:49:25 +08:00
Fixed #36734 -- Clarified the behavior of View.http_method_not_allowed.
This commit is contained in:
committed by
Jacob Walls
parent
b1a65eac7c
commit
ff843bcbce
@@ -113,8 +113,9 @@ ancestor classes are documented under the section title of **Ancestors
|
||||
If the view was called with an HTTP method it doesn't support, this
|
||||
method is called instead.
|
||||
|
||||
The default implementation returns ``HttpResponseNotAllowed`` with a
|
||||
list of allowed methods in plain text.
|
||||
The default implementation returns ``HttpResponseNotAllowed`` with the
|
||||
list of allowed methods in the ``Allow`` header, as required by
|
||||
:rfc:`RFC 7231 <7231#section-6.5.5>`. The response body is empty.
|
||||
|
||||
.. method:: options(request, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user