diff options
Diffstat (limited to 'django/core/context_processors.py')
| -rw-r--r-- | django/core/context_processors.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/context_processors.py b/django/core/context_processors.py index cb08b12e5b..2ae9a6d972 100644 --- a/django/core/context_processors.py +++ b/django/core/context_processors.py @@ -36,7 +36,7 @@ def i18n(request): context_extras['LANGUAGE_CODE'] = request.LANGUAGE_CODE else: context_extras['LANGUAGE_CODE'] = settings.LANGUAGE_CODE - + from django.utils import translation context_extras['LANGUAGE_BIDI'] = translation.get_language_bidi() @@ -48,7 +48,7 @@ def request(request): # PermWrapper and PermLookupDict proxy the permissions system into objects that # the template system can understand. -class PermLookupDict: +class PermLookupDict(object): def __init__(self, user, module_name): self.user, self.module_name = user, module_name def __repr__(self): @@ -58,7 +58,7 @@ class PermLookupDict: def __nonzero__(self): return self.user.has_module_perms(self.module_name) -class PermWrapper: +class PermWrapper(object): def __init__(self, user): self.user = user def __getitem__(self, module_name): |
