﻿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
28775	Queryset last() does not honor slices	Liquid Scorpio	nobody	"Assume there is a time series of records for 100 days.

{{{
MyModel.objects.all().order_by('-date').last()
}}}

Returns the oldest record in the time series, which is same as returned by:

{{{
MyModel.objects.all().order_by('-date')[:10].last()
}}}


This is not intuitive. Should return the 10th newest record, the slice operator [:10] should be honoured."	Bug	closed	Database layer (models, ORM)	1.11	Normal	duplicate			Unreviewed	0	0	0	0	0	0
