Trying to get distinct values when model has a default sort order only ends in tears
|Reported by:||forest||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
This used to do what I'd expect:
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.