Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 69d8ff31ac89eea5aba926f335538a81092e470b 1 parent be5350f
@jacobian jacobian authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 django/core/
4 django/core/
@@ -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.")
Please sign in to comment.
Something went wrong with that request. Please try again.