﻿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
10451	Admin site dropdown ordering for ForeignKey doesn't work as expected	Leo Shklovskii	nobody	"In the case of:
{{{
from django.contrib.auth.models import User

class Foo(models.Model):
    user = models.ForeignKey(User)
}}}

When the admin page for Foo is rendered, the select dropdown to choose users has them sorted by id, despite the fact that the UserAdmin class has:
{{{
    ordering = ('username',)
}}}

I can get around this for my own models by setting ordering on the model itself but I don't want to modify or extend the existing User model and it seems reasonable for the admin site to respect the default ordering as specified in the ModelAdmin class.
"		closed	contrib.admin	dev		invalid			Unreviewed	0	0	0	0	0	0
