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.")