#36926: Admin list_display does not use boolean icons when traversing relations
-------------------------------------+-------------------------------------
     Reporter:  Michael Nagler       |                    Owner:  Huwaiza
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  contrib.admin        |                  Version:  6.0
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  1
-------------------------------------+-------------------------------------
Changes (by Jacob Walls <jacobtylerwalls@…>):

 * resolution:   => fixed
 * status:  assigned => closed

Comment:

 In [changeset:"4b2b4bf0ac2707dc9c4d51cabfa72168eaea95fe" 4b2b4bf0]:
 {{{#!CommitTicketReference repository=""
 revision="4b2b4bf0ac2707dc9c4d51cabfa72168eaea95fe"
 Fixed #36926 -- Made admin use boolean icons for related BooleanFields in
 list_display.

 When using related field lookups like 'parent__is_active' in list_display,
 the admin now correctly detects if the final field is a BooleanField and
 displays boolean icons instead of 'True'/'False' text.

 Modified lookup_field() in django/contrib/admin/utils.py to retrieve the
 final field from the path when traversing relations using LOOKUP_SEP (__),
 allowing display_for_field() to properly handle BooleanFields.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36926#comment:11>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019d00e6c5a7-a7b320d9-4d05-4e48-8d2f-824ed4f18627-000000%40eu-central-1.amazonses.com.

Reply via email to