diff options
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/backends/django.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/django/template/backends/django.py b/django/template/backends/django.py index 580d789a67..63747f7c7f 100644 --- a/django/template/backends/django.py +++ b/django/template/backends/django.py @@ -45,5 +45,11 @@ class Template(object): if request is None: context = Context(context) else: - context = RequestContext(request, context) + # The following pattern is required to ensure values from + # context override those from template context processors. + original_context = context + context = RequestContext(request) + if original_context: + context.push(original_context) + return self.template.render(context) |
