#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>