Commit 044d419c authored by Tim Graham's avatar Tim Graham
Browse files

[1.6.x] Fixed #22912 -- Warned about a common mistake in tutorial 5.

Backport of 1e841125 from master
parent 25d04ebe
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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?>]