﻿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
11283	latest() doesn't clear previous ordering	benmoran	nobody	"Unlike order_by() in django.db.models.query, the latest() method doesn't clear previous orderings.

This means that latest can return incorrect results if used on a previously sorted QuerySet, e.g. 
 {{{ Article.objects.order_by('id').latest('id') }}}
returns the first rather than the last id.

It looks strange when written on a single line, but can happen - I encountered it with code from django-reversion using QuerySets that already had orderings set."	Bug	closed	Database layer (models, ORM)		Normal	fixed			Ready for checkin	1	0	0	0	0	0
