Ticket #18266: diff.patch

File diff.patch, 759 bytes (added by fberger, 13 years ago)
  • django/template/context.py

    diff --git a/django/template/context.py b/django/template/context.py
    index bcfaa3b..a771b65 100644
    a b  
     1import inspect
    12from copy import copy
    23from django.core.exceptions import ImproperlyConfigured
    34from django.utils.importlib import import_module
    class RequestContext(Context):  
    174175        else:
    175176            processors = tuple(processors)
    176177        for processor in get_standard_processors() + processors:
    177             self.update(processor(request))
     178            spec = inspect.getargspec(processor)
     179            if len(spec[0]) == 2:
     180                self.update(processor(request, self))
     181            else:
     182                self.update(processor(request))
     183
Back to Top