summaryrefslogtreecommitdiff
path: root/django/shortcuts/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/shortcuts/__init__.py')
-rw-r--r--django/shortcuts/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/shortcuts/__init__.py b/django/shortcuts/__init__.py
index 3a0f6a0091..81381d08c1 100644
--- a/django/shortcuts/__init__.py
+++ b/django/shortcuts/__init__.py
@@ -7,7 +7,7 @@ from django.http import HttpResponse, Http404
from django.db.models.manager import Manager
def render_to_response(*args, **kwargs):
- return HttpResponse(loader.render_to_iter(*args, **kwargs))
+ return HttpResponse(loader.render_to_string(*args, **kwargs))
load_and_render = render_to_response # For backwards compatibility.
def get_object_or_404(klass, *args, **kwargs):