#11195: add fieldname to admin changelist <td> tags -- eases CSS customization
---------------------------------------+-------------------------------
Reporter: akaihola | Owner: nobody
Type: New feature | Status: new
Milestone: | Component: contrib.admin
Version: SVN | Severity: Normal
Resolution: | Keywords: css
Triage Stage: Accepted | Has patch: 1
Needs documentation: 1 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
---------------------------------------+-------------------------------
Comment (by julien):
@vdboor, `list_column_classes` sounds interesting but it's probably over-
engineering it a bit.
Ideally I would have liked to just have the field name as a CSS class, as
it would have been cleaner and also consistent with the `DIV.form-row` in
the change form. But there might have been a clash in the unlikely, yet
possible, event where a model had a field called "nowrap". We can't really
change the "nowrap" class as it's been documented for a very long time
(http://docs.djangoproject.com/en/dev/obsolete/admin-css/?from=olddocs
#font-styles-and-alignment).
So, I have updated Ramiro's patch and instead I've appended "-cell" to the
field name. It feels a little more semantic and cleaner that way. Also
more consistent with the `admin-checkbox-column` class in the table
header.
--
Ticket URL: <http://code.djangoproject.com/ticket/11195#comment:7>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.