django admin does not use ordering for foreign keys dropdown
|Reported by:||Brillgen Developers||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Versions: Admin of 1.2 as well as the 1.3 RC
Conditions:Model 2 has FK to Model 1. Model 1 has an ordering parameter (used in list display).
Expected Behavior: ordering should be used for showing the dropdown in Model 2
Acual Behaviour: dropdown in Model 2 for items in Model 1 shows in model meta sorting order
Reason: if the model meta sort order is used all queries have an extra overhead. Since the admin is just using an ordering parameter that it itself uses for the list display, there is no overhead or incongruity.
This can always be an additional parameter of course.
I would be happy to try and submit a patch against the 1.3rc as long as the community can bless this as a valid bug/enhancement that will be accepted into django main.