﻿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
9186	Trying to get distinct values when model has a default sort order only ends in tears	Forest Bond	nobody	"This used to do what I'd expect:

{{{
PbxRecord.objects.values('extension').distinct()
}}}

But now it returns way too many values, because it generates this query:

{{{
SELECT DISTINCT `datastore_pbxrecord`.`extension`, `datastore_pbxrecord`.`id` FROM `datastore_pbxrecord` ORDER BY `datastore_pbxrecord`.`id` ASC
}}}

This is because the default ordering on the model is by id.  I assume this broke with the merge of queryset refactor, although I don't know that for sure.  I'm currently running on 1.0 beta 2."		closed	Uncategorized	1.0		invalid			Unreviewed	0	0	0	0	0	0
