From 186eb21dc159807dba83148f7c9c50d470745708 Mon Sep 17 00:00:00 2001 From: fabrizio ettore messina Date: Tue, 11 Aug 2015 13:35:50 +0200 Subject: Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators. --- docs/ref/utils.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index c1df458872..c24551b9ec 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -155,12 +155,20 @@ The functions defined in this module share the following properties: Converts a function decorator into a method decorator. It can be used to decorate methods or classes; in the latter case, ``name`` is the name - of the method to be decorated and is required. See :ref:`decorating - class-based views` for example usage. + of the method to be decorated and is required. + + ``decorator`` may also be a a list or tuple of functions. They are wrapped + in reverse order so that the call order is the order in which the functions + appear in the list/tuple. + + See :ref:`decorating class based views ` for + example usage. .. versionchanged:: 1.9 - The ability to decorate classes and the ``name`` parameter were added. + The ability to decorate classes, the ``name`` parameter, and the ability + for ``decorator`` to accept a list/tuple of decorator functions were + added. .. function:: decorator_from_middleware(middleware_class) -- cgit v1.3