#29835: list_filter does not follow admin ordering, only model meta
-------------------------------------+------------------------------------
     Reporter:  Brillgen Developers  |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admin        |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  filter               |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+------------------------------------
Changes (by Carlton Gibson):

 * version:  2.0 => master
 * stage:  Unreviewed => Accepted


Comment:

 This looks reasonable.
 
[https://github.com/django/django/blob/f3d3338e06d571a529bb2046428eeac8e56bcbf6/django/contrib/admin/filters.py#L196-L197
 `RelatedFieldListFilter.field_choices()`] goes straight via
 
[https://github.com/django/django/blob/f3d3338e06d571a529bb2046428eeac8e56bcbf6/django/db/models/fields/__init__.py#L810-L832
 `Field.get_choices()`]. It should probably make a detour through
 
[https://github.com/django/django/blob/f3d3338e06d571a529bb2046428eeac8e56bcbf6/django/contrib/admin/options.py#L208-L219
 `BaseModelAdmin.get_field_queryset()`].

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29835#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.a4a16e2a7500bba844a20adbe5abbc11%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to