django / code.djangoproject.com

Configuration for Django's Trac instance (code.djangoproject.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django admin layout breaks when using help_text in 2 columns in admin

camarone opened this issue · comments

I'm using Django 4.2b1 and found a problem with the Django admin layout when I use the help_text in model admin. The help_text in the Admin form appears on a separate line and breaks the alignment of the fields. This happens in every browser I've tested.

Create a model with two or more fields that have help_text defined with a size larger than the field name. Register this model in admin.py with ModelAdmin and put them on the same line using fieldsets giving name to the line. Access the edit page of this model in Django admin and observe the layout.
Expected result:

The help_text should appear below the corresponding field, without affecting the alignment of the other fields.

print with error on Django version 4.2b1
4 2b1

print without the error in Django version 4.1.5
4 1 7

Thanks for reporting this issue! However you've find the wrong tracker, please report on https://code.djangoproject.com/

This tracker is for the code.djangoproject.com website itself.

(note for project admins, I don't have the rights to close tickets here)