summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2012-09-08 18:45:02 -0400
committerTim Graham <timograham@gmail.com>2012-09-08 18:45:02 -0400
commit518c58296667ffc36f90b873eb97aa99fa00eb1e (patch)
tree87f323f27c23dc2e1cd6597835408c41abf5d25c /docs/ref
parent72ca530af5e85bef6292bb1a16f3d9062f172f63 (diff)
Fixed #15906 - Documented HEAD method in CBVs; thanks zsiciarz for the patch.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/class-based-views/base.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt
index 954aee7c3d..cc9aa852f1 100644
--- a/docs/ref/class-based-views/base.txt
+++ b/docs/ref/class-based-views/base.txt
@@ -71,6 +71,11 @@ View
delegated to :meth:`~View.get()`, a ``POST`` to :meth:`~View.post()`,
and so on.
+ By default, a ``HEAD`` request will be delegated to :meth:`~View.get()`.
+ If you need to handle ``HEAD`` requests in a different way than ``GET``,
+ you can override the :meth:`~View.head()` method. See
+ :ref:`supporting-other-http-methods` for an example.
+
The default implementation also sets ``request``, ``args`` and
``kwargs`` as instance variables, so any method on the view can know
the full details of the request that was made to invoke the view.