From 86d772bb2ae3b8e75a47d1f9e89ef0a5320a6bfc Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Tue, 31 Mar 2009 16:49:54 +0000 Subject: [PATCH] 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 --- docs/topics/http/shortcuts.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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``