Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.0.X]: Fixed #10120 -- Added a `return` to a doc example, patch fro…

…m 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
  • Loading branch information...
commit 24a359f078af3eb5a7dd7b151a74cb303557dd34 1 parent e4e38e8
@gdub gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/topics/http/shortcuts.txt
View
2  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``
Please sign in to comment.
Something went wrong with that request. Please try again.