#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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/0107019bdaffb311-a85503f8-7df4-4d35-afc3-d8a87f0838e6-000000%40eu-central-1.amazonses.com.