Ticket #13841: ticket13841.diff
File ticket13841.diff, 875 bytes (added by , 14 years ago) |
---|
-
template/context.py
1 from inspect import getargspec 1 2 from django.core.exceptions import ImproperlyConfigured 2 3 from django.utils.importlib import import_module 3 4 … … 147 148 else: 148 149 processors = tuple(processors) 149 150 for processor in get_standard_processors() + processors: 150 self.update(processor(request)) 151 if not hasattr(processor, 'pass_context'): 152 arginfo = getargspec(processor) 153 processor.pass_context = len(arginfo[0]) > 1 154 if processor.pass_context: 155 self.update(processor(request, context=self)) 156 else: 157 self.update(processor(request)) 158