Refs #27753 -- Removed django.utils.decorators.ContextDecorator alias.

This commit is contained in:
Tim Graham 2019-02-04 20:14:46 -05:00
parent 41384812ef
commit 9a750cbd5c
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,5 @@
"Functions that help with dynamically creating decorators for views."
# For backwards compatibility in Django 2.0.
from contextlib import ContextDecorator # noqa
from functools import partial, update_wrapper, wraps

View File

@ -257,6 +257,9 @@ Django 3.0, we're removing these APIs at this time.
* ``django.utils.decorators.available_attrs()`` - This function returns
``functools.WRAPPER_ASSIGNMENTS``.
* ``django.utils.decorators.ContextDecorator`` - Alias of
:class:`contextlib.ContextDecorator`.
* ``django.utils._os.abspathu()`` - Alias of :func:`os.path.abspath`.
* ``django.utils._os.upath()`` and ``npath()`` - These functions do nothing on