'get_list_or_404' does not know the slicing
|Reported by:||spike||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
To make a story short, see this code.
I have model, Document, it contains 30 objects.
It returns entire objects of Document, but in this case,
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.