diff --git a/django/utils/decorators.py b/django/utils/decorators.py index f0998b8bd1..8e274b61af 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -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 diff --git a/docs/releases/3.0.txt b/docs/releases/3.0.txt index c88a5c00ab..97ada26838 100644 --- a/docs/releases/3.0.txt +++ b/docs/releases/3.0.txt @@ -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