From 518c58296667ffc36f90b873eb97aa99fa00eb1e Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Sat, 8 Sep 2012 18:45:02 -0400 Subject: Fixed #15906 - Documented HEAD method in CBVs; thanks zsiciarz for the patch. --- docs/ref/class-based-views/base.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs/ref/class-based-views') 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. -- cgit v1.3