diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-09-14 21:58:17 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-09-14 21:58:17 +0000 |
| commit | 4f70820dc19c157ea0abc14a2b96ffbb1eccf47e (patch) | |
| tree | b22c2f7b94f0e274eaf2403fc942133f5fdb56d6 | |
| parent | ddd3d7c71fb25e3685f17b6a231addf143e2741b (diff) | |
Fixed breakage introduced in the recent render_to_response() change
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6227 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/shortcuts/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/shortcuts/__init__.py b/django/shortcuts/__init__.py index 56a2b2634a..2843a33646 100644 --- a/django/shortcuts/__init__.py +++ b/django/shortcuts/__init__.py @@ -14,7 +14,7 @@ def render_to_response(*args, **kwargs): Returns a HttpResponse whose content is filled with the result of calling django.template.loader.render_to_string() with the passed arguments. """ - httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype')} + httpresponse_kwargs = {'mimetype': kwargs.pop('mimetype', None)} return HttpResponse(loader.render_to_string(*args, **kwargs), **httpresponse_kwargs) load_and_render = render_to_response # For backwards compatibility. |
