diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt index d68faee258..12a32c760f 100644 --- a/docs/topics/http/shortcuts.txt +++ b/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``