diff options
Diffstat (limited to 'docs/topics/http')
| -rw-r--r-- | docs/topics/http/shortcuts.txt | 2 |
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`` |
