#36788 closed Bug (fixed)
Admin fieldsets no longer arranged horizontally
| Reported by: | Ronald Ligteringen | Owned by: | Jacob Walls |
|---|---|---|---|
| Component: | contrib.admin | Version: | 6.0 |
| Severity: | Release blocker | Keywords: | horizontal alignment admin fieldset |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | yes |
Description
To horizontally align fields in the admin change page you can combine these fields in a tuple, like this:
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:
Attachments (2)
Change History (11)
comment:1 by , 2 months ago
| Resolution: | → worksforme |
|---|---|
| Status: | new → closed |
by , 3 weeks ago
| Attachment: | image-20260120-113611.png added |
|---|
by , 3 weeks ago
| Attachment: | image-20260120-113747.png added |
|---|
comment:2 by , 3 weeks ago
| Resolution: | worksforme |
|---|---|
| Status: | closed → new |
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:

comment:3 by , 3 weeks ago
| Keywords: | fieldset added; fields removed |
|---|---|
| Owner: | set to |
| Severity: | Normal → Release blocker |
| Status: | new → assigned |
| Summary: | horizontal alignment of fields in admin change not working in 6.0 → Admin fieldsets no longer arranged horizontally |
| Triage Stage: | Unreviewed → Accepted |
Thanks, with that I can reproduce.
Regression in 4187da258fe212d494cb578a0bc2b52c4979ab95.
comment:5 by , 11 days ago
| Triage Stage: | Accepted → Ready for checkin |
|---|

Works fine for me with 6.0. Do you have a reproducer?