This commit is contained in:
Zubair Hassan 2025-11-16 14:43:02 +01:00 committed by GitHub
commit 35ebe4b8e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -113,8 +113,10 @@ ancestor classes are documented under the section title of **Ancestors
If the view was called with an HTTP method it doesn't support, this If the view was called with an HTTP method it doesn't support, this
method is called instead. method is called instead.
The default implementation returns ``HttpResponseNotAllowed`` with a The default implementation returns ``HttpResponseNotAllowed`` with the
list of allowed methods in plain text. list of allowed methods in the ``Allow`` header. The response body is
empty, as required by :rfc:`RFC 7231 <7231#section-6.5.5>`.
.. method:: options(request, *args, **kwargs) .. method:: options(request, *args, **kwargs)