diff options
| author | Zubair Hassan <zubair.hassan@alchemative.com> | 2025-11-20 16:38:47 +0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2025-11-20 15:52:53 -0500 |
| commit | ff843bcbce1f7fc16fcc4d4810c221a2eb11c167 (patch) | |
| tree | c70dccff295ee39d29140b8dabf384d6b35f89dd /docs | |
| parent | b1a65eac7c09250d36e12464fc8fff2a401246b6 (diff) | |
Fixed #36734 -- Clarified the behavior of View.http_method_not_allowed.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/class-based-views/base.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index c1b302ea6a..887a83b37f 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -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) |
