1
0
mirror of https://github.com/django/django.git synced 2025-07-19 17:19:12 +00:00

[1.9.x] Fixed #26695 -- Clarified return value of View.options().

Thanks mmoreaux and DheerendraRathor.

Backport of db2a6b6bfa9881725e70ca579a17e942a97a4df8 from master
This commit is contained in:
Tim Graham 2016-06-01 08:01:05 -04:00
parent 25e0273a05
commit 84698b89c8

View File

@ -95,7 +95,9 @@ MRO is an acronym for Method Resolution Order.
.. method:: options(request, *args, **kwargs) .. method:: options(request, *args, **kwargs)
Handles responding to requests for the OPTIONS HTTP verb. Returns a Handles responding to requests for the OPTIONS HTTP verb. Returns a
list of the allowed HTTP method names for the view. response with the ``Allow`` header containing a list of the view's
allowed HTTP method names.
``TemplateView`` ``TemplateView``
================ ================