summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-27 09:50:29 -0400
committerTim Graham <timograham@gmail.com>2014-06-27 09:52:35 -0400
commit044d419c212478ba42c9f5887ba224414503b9c1 (patch)
treee46f082c683117d7565b3042e673e2305c9a19dc /docs
parent25d04ebe545c556d34a0333b8c30367cdc6ad84f (diff)
[1.6.x] Fixed #22912 -- Warned about a common mistake in tutorial 5.
Backport of 1e8411259f from master
Diffstat (limited to 'docs')
-rw-r--r--docs/intro/tutorial05.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 8043f4987b..27387803af 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -369,6 +369,8 @@ With that ready, we can ask the client to do some work for us::
>>> response = client.get('/polls/')
>>> response.content
'\n\n\n <ul>\n \n <li><a href="/polls/1/">Who is your favorite Beatle?</a></li>\n \n </ul>\n\n'
+ >>> # If the following doesn't work, you probably omitted the call to
+ >>> # setup_test_environment() described above
>>> response.context['latest_poll_list']
[<Poll: Who is your favorite Beatle?>]