summaryrefslogtreecommitdiff
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:51:21 -0400
commit1e8411259f14f2ef788cc4e7c2a4cdbb537d39b3 (patch)
tree7f4b8b95abfe491763fe3e1973dc7019b6676be0
parent5e9773269a2a1464b845b7cc98b62b3e9d863131 (diff)
Fixed #22912 -- Warned about a common mistake in tutorial 5.
-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 24a7b29807..545a84ad80 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -381,6 +381,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_question_list']
[<Question: Who is your favorite Beatle?>]