﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
2863	docs/tutorial03.txt missing code ??	bonovoxmofo@…	somebody	"On docs/tutorial03.txt you are talking about limit the list of polls to five, but since you introduce render_to_response() you forgot to include that piece of code.

{{
from django.shortcuts import render_to_response
    from mysite.polls.models import Poll

    def index(request):
        latest_poll_list = Poll.objects.all().order_by('-pub_date')
        return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
}}

It should be

{{
from django.shortcuts import render_to_response
    from mysite.polls.models import Poll

    def index(request):
        latest_poll_list = Poll.objects.all().order_by('-pub_date')'''[:5]'''
        return render_to_response('polls/index.html', {'latest_poll_list': latest_poll_list})
}}

Thanks.

"	defect	closed	Documentation	0.95	normal	fixed			Unreviewed	0	0	0	0	0	0
