summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial05.txt
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:55 -0400
commit8e48ca47e956ad2ec7eb19fca6eae3a58c0bf6c8 (patch)
tree091f7118feec561df6fe6e93835d413148b65a81 /docs/intro/tutorial05.txt
parent78bff08341cfd5b729697c13a7478e83726782d1 (diff)
[1.7.x] Fixed #22912 -- Warned about a common mistake in tutorial 5.
Backport of 1e8411259f from master
Diffstat (limited to 'docs/intro/tutorial05.txt')
-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?>]