Skip to content

Commit

Permalink
Fixed #34994, Fixed #35386 -- Applied checkbox-row CSS class uncondit…
Browse files Browse the repository at this point in the history
…ionally in Admin.
  • Loading branch information
adamchainz authored and sarahboyce committed Apr 19, 2024
1 parent 2be37b2 commit bdd76c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% for field in line %}
<div>
{% if not line.fields|length == 1 and not field.is_readonly %}{{ field.errors }}{% endif %}
<div class="flex-container{% if not line.fields|length == 1 %} fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}{% elif field.is_checkbox %} checkbox-row{% endif %}">
<div class="flex-container{% if not line.fields|length == 1 %} fieldBox{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}{% if field.field.is_hidden %} hidden{% endif %}{% endif %}{% if field.is_checkbox %} checkbox-row{% endif %}">
{% if field.is_checkbox %}
{{ field.field }}{{ field.label_tag }}
{% else %}
Expand Down
4 changes: 4 additions & 0 deletions docs/releases/4.2.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ Bugfixes
* Fixed a crash in Django 4.2 when validating email max line lengths with
content decoded using the ``surrogateescape`` error handling scheme
(:ticket:`35361`).

* Fixed a regression in Django 4.2 where multiple checkboxes in the admin would
be centered on narrower screen widths (:ticket:`34994`) or have misaligned
labels (:ticket:`35386`).
4 changes: 4 additions & 0 deletions docs/releases/5.0.5.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ Bugfixes
* Fixed a bug in Django 5.0 that caused a crash when applying migrations
including alterations to ``GeneratedField`` such as setting ``db_index=True``
on SQLite (:ticket:`35373`).

* Fixed a regression in Django 4.2 where multiple checkboxes in the admin would
be centered on narrower screen widths (:ticket:`34994`) or have misaligned
labels (:ticket:`35386`).

0 comments on commit bdd76c4

Please sign in to comment.