[Django] #36788: horizontal alignment of fields in admin change not working in 6.0

7 views
Skip to first unread message

Django

unread,
Dec 10, 2025, 5:04:58 AM12/10/25
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Type: Bug
Status: new | Component:
| contrib.admin
Version: 6.0 | Severity: Normal
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
To horizontally align fields in the admin change page you can combine
these fields in a tuple, like this:

{{{#!python
fields = ["name", ("age", "gender"), "nationality"]
}}}

In this example, the change screen would show something like this:

**name:
age: gender:
nationality:**

This works great in version 5, however this is not working in 6.0. This
will show all fields vertically like this:

**name:
age:
gender:
nationality:**
--
Ticket URL: <https://code.djangoproject.com/ticket/36788>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 10, 2025, 10:20:38 AM12/10/25
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
| worksforme
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Jacob Walls):

* resolution: => worksforme
* status: new => closed

Comment:

Works fine for me with 6.0. Do you have a reproducer?
--
Ticket URL: <https://code.djangoproject.com/ticket/36788#comment:1>

Django

unread,
Jan 20, 2026, 5:28:17 AM (3 days ago) Jan 20
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
| worksforme
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Martin):

* Attachment "image-20260120-112809.png" added.

Django

unread,
Jan 20, 2026, 5:35:18 AM (3 days ago) Jan 20
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
| worksforme
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Martin):

* Attachment "image-20260120-112809.png" removed.

Django

unread,
Jan 20, 2026, 5:36:17 AM (3 days ago) Jan 20
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
| worksforme
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Martin):

* Attachment "image-20260120-113611.png" added.

Django

unread,
Jan 20, 2026, 5:37:53 AM (3 days ago) Jan 20
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: closed
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
| worksforme
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Martin):

* Attachment "image-20260120-113747.png" added.

Django

unread,
Jan 20, 2026, 5:42:34 AM (3 days ago) Jan 20
to django-...@googlegroups.com
#36788: horizontal alignment of fields in admin change not working in 6.0
-------------------------------------+-------------------------------------
Reporter: Ronald Ligteringen | Owner: (none)
Type: Bug | Status: new
Component: contrib.admin | Version: 6.0
Severity: Normal | Resolution:
Keywords: horizontal | Triage Stage:
alignment fields admin | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 1
-------------------------------------+-------------------------------------
Changes (by Martin):

* resolution: worksforme =>
* status: closed => new

Comment:

I'm seeing this same issue with fields rendered in a fieldset.
I figure it's caused by the fix for issue #36807.

{{{
from django.db import models
from django.contrib import admin

class FormMultilineTest(models.Model):
date = models.DateTimeField()
boolean = models.BooleanField(default=False)
boolean2 = models.BooleanField(default=False)
text = models.CharField(max_length=100)

class FormMultilineTestAdmin(admin.ModelAdmin):
fieldsets = (
(None, {
'fields': (
('text', 'date',),
('boolean', 'boolean2'),
)
}
),
)
admin.site.register(FormMultilineTest, FormMultilineTestAdmin)
}}}

Results in the first two fields being one below another, while the
booleans are as expected:
[[Image(image-20260120-113747.png)]]

The expected result (on 5.2.10):
[[Image(image-20260120-113611.png)]]
--
Ticket URL: <https://code.djangoproject.com/ticket/36788#comment:2>
Reply all
Reply to author
Forward
0 new messages