summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2009-03-31 16:52:47 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2009-03-31 16:52:47 +0000
commit24a359f078af3eb5a7dd7b151a74cb303557dd34 (patch)
tree4ec28140df901aec92e419a3ab606bb6d86d55a3 /docs/topics/http
parente4e38e85c272c7d6a9a23aa120881b1a6cb76d5f (diff)
[1.0.X]: Fixed #10120 -- Added a `return` to a doc example, patch from andrews.
Backport of r10265 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10266 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/http')
-rw-r--r--docs/topics/http/shortcuts.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt
index d68faee258..12a32c760f 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -70,7 +70,7 @@ This example is equivalent to::
# View code here...
t = loader.get_template('myapp/template.html')
c = Context({'foo': 'bar'})
- r = HttpResponse(t.render(c),
+ return HttpResponse(t.render(c),
mimetype="application/xhtml+xml")
``get_object_or_404``