Fixed #22912 -- Warned about a common mistake in tutorial 5.

This commit is contained in:
Tim Graham 2014-06-27 09:50:29 -04:00
parent 5e9773269a
commit 1e8411259f
1 changed files with 2 additions and 0 deletions

View File

@ -381,6 +381,8 @@ With that ready, we can ask the client to do some work for us::
>>> response = client.get('/polls/') >>> response = client.get('/polls/')
>>> response.content >>> 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' '\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'] >>> response.context['latest_question_list']
[<Question: Who is your favorite Beatle?>] [<Question: Who is your favorite Beatle?>]