mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators.
This commit is contained in:
committed by
Tim Graham
parent
d8d853378b
commit
186eb21dc1
@@ -378,8 +378,9 @@ Generic Views
|
||||
* Class-based views generated using ``as_view()`` now have ``view_class``
|
||||
and ``view_initkwargs`` attributes.
|
||||
|
||||
* :func:`~django.utils.decorators.method_decorator` can now be used to
|
||||
:ref:`decorate classes instead of methods <decorating-class-based-views>`.
|
||||
* :func:`~django.utils.decorators.method_decorator` can now be used with a list
|
||||
or tuple of decorators. It can also be used to :ref:`decorate classes instead
|
||||
of methods <decorating-class-based-views>`.
|
||||
|
||||
Internationalization
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Reference in New Issue
Block a user