﻿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
10212	Admin ChangeList doesn't apply 'order_by' clause specified by ModelAdmin.queryset	kyle.fox@…	nobody	"Overriding `ModelAdmin.queryset` to apply an explicit `order_by` clause doesn't work.  Although it looks like it, the example shown won't order by `'-birth_date'`

{{{
class PersonAdmin(admin.ModelAdmin):
    list_display = ['name', 'birth_date']
    
    def queryset(self, request):
        return Person.objects.order_by('-birth_date')
        
admin.site.register(Person, PersonAdmin)
}}}

This patch changes `ChangeList.get_ordering` to respect any ordering clause that is present on the queryset."		closed	contrib.admin	1.0		duplicate	ChangeList, admin, ordering, queryset		Design decision needed	1	0	0	0	0	0
