From 69d8ff31ac89eea5aba926f335538a81092e470b Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sat, 9 Aug 2008 15:38:44 +0000 Subject: [PATCH] No, really: PermWrapper is not iterable. Fixes #8182. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8263 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/context_processors.py | 4 ++++ 1 file changed, 4 insertions(+) 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.")