diff --git a/django/contrib/admin/static/admin/css/changelists.css b/django/contrib/admin/static/admin/css/changelists.css index 641dccd7e3..a7545131a3 100644 --- a/django/contrib/admin/static/admin/css/changelists.css +++ b/django/contrib/admin/static/admin/css/changelists.css @@ -257,11 +257,11 @@ /* Once the :has() pseudo-class is supported by all browsers, the tr.selected selector and the JS adding the class can be removed. */ -#changelist table tbody tr.selected { +#changelist tbody tr.selected { background-color: var(--selected-row); } -#changelist table tbody tr:has(input[type=checkbox]:checked) { +#changelist tbody tr:has(.action-select:checked) { background-color: var(--selected-row); } diff --git a/docs/releases/4.2.3.txt b/docs/releases/4.2.3.txt index 66d6611b36..4ab29b0cff 100644 --- a/docs/releases/4.2.3.txt +++ b/docs/releases/4.2.3.txt @@ -11,3 +11,7 @@ Bugfixes * Fixed a regression in Django 4.2 that caused incorrect alignment of timezone warnings for ``DateField`` and ``TimeField`` in the admin (:ticket:`34645`). + +* Fixed a regression in Django 4.2 that caused incorrect highlighting of rows + in the admin changelist view when ``ModelAdmin.list_editable`` contained a + ``BooleanField`` (:ticket:`34638`).