diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-04-19 13:39:29 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-04-19 13:40:19 +0200 |
| commit | a42a2fa267c68ed2cc97559396178deaa9477ef3 (patch) | |
| tree | 30269fcc39ef59c85b5caff646e241f6434ab227 | |
| parent | ffcf66071158ed3b5541ed13b4c7381240d1b310 (diff) | |
[5.0.x] Reverted "Fixed #34994, Fixed #35386 -- Applied checkbox-row CSS class unconditionally in Admin."
This reverts commit ffcf66071158ed3b5541ed13b4c7381240d1b310.
| -rw-r--r-- | django/contrib/admin/templates/admin/includes/fieldset.html | 2 | ||||
| -rw-r--r-- | docs/releases/4.2.12.txt | 4 | ||||
| -rw-r--r-- | docs/releases/5.0.5.txt | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html index 04e76055ce..9a4372f791 100644 --- a/django/contrib/admin/templates/admin/includes/fieldset.html +++ b/django/contrib/admin/templates/admin/includes/fieldset.html @@ -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 %}{% endif %}{% if 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 %}{% elif field.is_checkbox %} checkbox-row{% endif %}"> {% if field.is_checkbox %} {{ field.field }}{{ field.label_tag }} {% else %} diff --git a/docs/releases/4.2.12.txt b/docs/releases/4.2.12.txt index 7423dd8745..64a6832d59 100644 --- a/docs/releases/4.2.12.txt +++ b/docs/releases/4.2.12.txt @@ -12,7 +12,3 @@ 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`). diff --git a/docs/releases/5.0.5.txt b/docs/releases/5.0.5.txt index e343d730b0..788753c826 100644 --- a/docs/releases/5.0.5.txt +++ b/docs/releases/5.0.5.txt @@ -20,7 +20,3 @@ 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`). |
