diff options
| author | Adam Johnson <me@adamj.eu> | 2024-04-18 12:52:53 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-04-19 11:23:28 +0200 |
| commit | ffcf66071158ed3b5541ed13b4c7381240d1b310 (patch) | |
| tree | 468f246c4795461be80899c0d746849a7c42818f /django | |
| parent | d36ecbd5306f98231c9f9cbfc78136052fde723a (diff) | |
[5.0.x] Fixed #34994, Fixed #35386 -- Applied checkbox-row CSS class unconditionally in Admin.
Backport of bdd76c4c3817d8e3ed5b0450d5e18e4eae096f16 from main.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/templates/admin/includes/fieldset.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html index 9a4372f791..04e76055ce 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 %}{% 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 %} |
