﻿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
7840	'get_list_or_404' does not know the slicing	Spike^ekipS	nobody	"To make a story short, see this code.

I have model, Document, it contains 30 objects.
>>> get_list_or_404(Document)

It returns entire objects of Document, but in this case,
>>> get_list_or_404(Document)[:10]

Not like a general usage of queryset filtering, get_list_or_404 does not handle the
slicing, it just return the all the objects of model.

To handle the slicing and return Http404 if there are not objects, wrote new
sub-class, 'WrapperQueryset'. See the patched code."		closed	Core (Other)	dev		wontfix	get_list_or_404		Unreviewed	1	0	0	0	0	0
