﻿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
6550	"tutorial part 4 - Use generic views not equivalent to ""the hard way"" results"	alexandre.dupas@…	Vegpuff	"In the fourth part of the tutorial, when using generic views to replace the previously presented ""hard way"" code, the obtain result is not equivalent.

Indeed, the hard way shows only 5 polls on the ""index"" page. The generic way shows all of the possible results.

It would be useful to present the exact same behavior using the both approaches.

A possible answer to that request would be to use an extra select_dict initialized with

{{{
select_dict = {
    'queryset': Poll.objects.all().order_by('-pub_date')[:5],
}
}}}

and modify the first urlpatterns with 
{{{
(r'^$', 'django.views.generic.list_detail.object_list', select_dict),
}}}

As I am a beginner with django (and Python too) it might exist a better solution but at least this one works.
"		closed	Documentation	dev		fixed		veg.puff@…	Accepted	1	0	0	0	0	0
