Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#29221 closed Bug (fixed)

No space added before admin-autocomplete CSS class

Reported by: Artem Tabolin Owned by: nobody
Component: contrib.admin Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: yes

Description

When Django adds admin-autocomplete CSS class to the select widget, it doesn't add a space before resulting in two concatenated CSS class names.

One of the consequences: autocomplete doesn't work if initial class attribute wasn't empty.

The operation is performed here:https://github.com/django/django/blob/e17088a108e604cad23b000a83189fdd02a8a2f9/django/contrib/admin/widgets.py#L416

Change History (4)

comment:2 Changed 3 years ago by Tim Graham

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 3 years ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In a2f7433:

Fixed #29221 -- Corrected admin's autocomplete widget to add a space after custom classes.

comment:4 Changed 3 years ago by Tim Graham <timograham@…>

In 9bf8664b:

[2.0.x] Fixed #29221 -- Corrected admin's autocomplete widget to add a space after custom classes.

Backport of a2f7433adc610cb0a85b3e23a1fec2267591f866 from master

Note: See TracTickets for help on using tickets.
Back to Top