diff --git a/django/template/response.py b/django/template/response.py
index f65c3ad..f43a4e0 100644
a
|
b
|
class TemplateResponse(SimpleTemplateResponse):
|
154 | 154 | """ |
155 | 155 | if isinstance(context, Context): |
156 | 156 | return context |
157 | | return RequestContext(self._request, context, current_app=self._current_app) |
| 157 | context_instance = RequestContext(self._request, current_app=self._current_app) |
| 158 | if context: |
| 159 | context_instance.push(context) |
| 160 | return context_instance |
diff --git a/tests/template_tests/test_response.py b/tests/template_tests/test_response.py
index 8791a11..d7dd3f4 100644
a
|
b
|
class TemplateResponseTest(TestCase):
|
233 | 233 | Context({'foo': 'bar'})).render() |
234 | 234 | self.assertEqual(response.content, b'bar') |
235 | 235 | |
| 236 | def test_context_processor_priority(self): |
| 237 | # context processors should be overridden by passed-in context |
| 238 | response = self._response('{{ foo }}{{ processors }}', |
| 239 | {'processors': 'no'}).render() |
| 240 | self.assertEqual(response.content, b'no') |
| 241 | |
236 | 242 | def test_kwargs(self): |
237 | 243 | response = self._response(content_type='application/json', |
238 | 244 | status=504) |