summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-03-31 12:57:06 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-03-31 12:57:06 +0000
commit95d9662f3984199062f237386a45b1a2c170f01d (patch)
treef881f1d7700a141c1ffc8d70878ca956a2bacb21
parentbfbe4dfff749c27cda528bf632f8dda28a48e774 (diff)
Removed deprecated copy of PermWrapper and PermLookupDict from django.core.context_processors.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17844 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/context_processors.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/django/core/context_processors.py b/django/core/context_processors.py
index 80f1e76d35..1a2a188246 100644
--- a/django/core/context_processors.py
+++ b/django/core/context_processors.py
@@ -69,32 +69,3 @@ def media(request):
def request(request):
return {'request': request}
-
-# PermWrapper and PermLookupDict proxy the permissions system into objects that
-# the template system can understand. They once lived here -- they have
-# been moved to django.contrib.auth.context_processors.
-
-from django.contrib.auth.context_processors import PermLookupDict as RealPermLookupDict
-from django.contrib.auth.context_processors import PermWrapper as RealPermWrapper
-
-class PermLookupDict(RealPermLookupDict):
- def __init__(self, *args, **kwargs):
- import warnings
- warnings.warn(
- "`django.core.context_processors.PermLookupDict` is " \
- "deprecated; use `django.contrib.auth.context_processors.PermLookupDict` " \
- "instead.",
- DeprecationWarning
- )
- super(PermLookupDict, self).__init__(*args, **kwargs)
-
-class PermWrapper(RealPermWrapper):
- def __init__(self, *args, **kwargs):
- import warnings
- warnings.warn(
- "`django.core.context_processors.PermWrapper` is " \
- "deprecated; use `django.contrib.auth.context_processors.PermWrapper` " \
- "instead.",
- DeprecationWarning
- )
- super(PermWrapper, self).__init__(*args, **kwargs)