diff --git a/django/template/context.py b/django/template/context.py
index bbd38ad..9fd6aaa 100644
a
|
b
|
|
1 | 1 | from copy import copy |
2 | 2 | from django.core.exceptions import ImproperlyConfigured |
3 | 3 | from django.utils.importlib import import_module |
| 4 | from django.http import HttpRequest |
4 | 5 | |
5 | 6 | # Cache of actual callables. |
6 | 7 | _standard_context_processors = None |
… |
… |
class RequestContext(Context):
|
166 | 167 | """ |
167 | 168 | def __init__(self, request, dict_=None, processors=None, current_app=None, |
168 | 169 | use_l10n=None, use_tz=None): |
| 170 | if not isinstance(request, HttpRequest): |
| 171 | raise TypeError('request: must be an HttpRequest instance, ' |
| 172 | 'not {0}'.format(repr(request))) |
169 | 173 | Context.__init__(self, dict_, current_app=current_app, |
170 | 174 | use_l10n=use_l10n, use_tz=use_tz) |
171 | 175 | if processors is None: |