Commit 69d8ff31 authored by Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss
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
parent be5350f2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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.")