Skip to content

Commit

Permalink
[4.2.x] Fixed #34638 -- Fixed admin change list selected row highligh…
Browse files Browse the repository at this point in the history
…t on editable boolean fields.

Regression in 0aa2f16.

Thanks Andrei Shabanski for the report.

Backport of 1d9d323 from main.
  • Loading branch information
sainipray authored and felixxm committed Jun 11, 2023
1 parent 31d1fc3 commit 9e9a286
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/admin/static/admin/css/changelists.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
4 changes: 4 additions & 0 deletions docs/releases/4.2.3.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`).

0 comments on commit 9e9a286

Please sign in to comment.