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
This commit is contained in:
parent
e87e7436e2
commit
86d772bb2a
|
@ -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``
|
||||
|
|
Loading…
Reference in New Issue