No, really: PermWrapper is not iterable. Fixes #8182.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8263 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
be5350f2d5
commit
69d8ff31ac
|
@ -79,3 +79,7 @@ class PermWrapper(object):
|
||||||
|
|
||||||
def __getitem__(self, module_name):
|
def __getitem__(self, module_name):
|
||||||
return PermLookupDict(self.user, module_name)
|
return PermLookupDict(self.user, module_name)
|
||||||
|
|
||||||
|
def __iter__(self):
|
||||||
|
# I am large, I contain multitudes.
|
||||||
|
raise TypeError("PermWrapper is not iterable.")
|
||||||
|
|
Loading…
Reference in New Issue