#15629: django admin does not use ordering for foreign keys dropdown
----------------------------------+---------------------------
 Reporter:  brillgen              |         Owner:  nobody
   Status:  new                   |     Milestone:  1.3
Component:  django.contrib.admin  |       Version:  1.2
 Keywords:                        |  Triage Stage:  Unreviewed
Has patch:  0                     |
----------------------------------+---------------------------
 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.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15629>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to