summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-02-04 20:14:46 -0500
committerTim Graham <timograham@gmail.com>2019-02-05 13:00:11 -0500
commit9a750cbd5c2a003c5680ab049c39ef3de218f5ce (patch)
tree5dc43f28aef79c2627a452747a5e729b8002e6e3
parent41384812efe209c8295a50d78b45e0ffb2992436 (diff)
Refs #27753 -- Removed django.utils.decorators.ContextDecorator alias.
-rw-r--r--django/utils/decorators.py2
-rw-r--r--docs/releases/3.0.txt3
2 files changed, 3 insertions, 2 deletions
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