Browse files

No, really: PermWrapper is not iterable. Fixes #8182.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent be5350f commit 69d8ff31ac89eea5aba926f335538a81092e470b @jacobian jacobian committed Aug 9, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/core/context_processors.py
View
4 django/core/context_processors.py
@@ -79,3 +79,7 @@ def __init__(self, user):
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.")

0 comments on commit 69d8ff3

Please sign in to comment.