1
0
mirror of https://github.com/django/django.git synced 2025-07-18 16:49:13 +00:00

[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
This commit is contained in:
Gary Wilson Jr 2009-03-31 16:52:47 +00:00
parent e4e38e85c2
commit 24a359f078

View File

@ -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``