summaryrefslogtreecommitdiff
path: root/docs/topics/http
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2009-03-31 16:49:54 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2009-03-31 16:49:54 +0000
commit86d772bb2ae3b8e75a47d1f9e89ef0a5320a6bfc (patch)
tree55dc0eb7ea8d2c8a6b6b5dc3f308cc377cdce913 /docs/topics/http
parente87e7436e21386c4ab27301442d4318e0bf52f1a (diff)
Fixed #10120 -- Added a `return` to a doc example, patch from andrews.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10265 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 f2e45728d6..64633aae12 100644
--- a/docs/topics/http/shortcuts.txt
+++ b/docs/topics/http/shortcuts.txt
@@ -76,7 +76,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")
``redirect``