summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2008-08-09 15:38:44 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2008-08-09 15:38:44 +0000
commit69d8ff31ac89eea5aba926f335538a81092e470b (patch)
tree1259a3bb69b2cacf9af62668b20d12ebfac5ca3e
parentbe5350f2d5faaa737fd05baacf907910ca2e9f09 (diff)
No, really: PermWrapper is not iterable. Fixes #8182.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/context_processors.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/django/core/context_processors.py b/django/core/context_processors.py
index bde3f665d4..cb07125ce7 100644
--- a/django/core/context_processors.py
+++ b/django/core/context_processors.py
@@ -79,3 +79,7 @@ class PermWrapper(object):
def __getitem__(self, module_name):
return PermLookupDict(self.user, module_name)
+
+ def __iter__(self):
+ # I am large, I contain multitudes.
+ raise TypeError("PermWrapper is not iterable.")