diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 7 | ||||
| -rw-r--r-- | docs/releases/1.6.txt | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 353c121cbc..67ed4231a2 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -543,6 +543,13 @@ subclass:: The above will tell Django to order by the ``first_name`` field when trying to sort by ``colored_first_name`` in the admin. + * .. versionadded:: 1.6 + + The field names in ``list_display`` will also appear as CSS classes in + the HTML output, in the form of ``column-<field_name>`` on each ``<th>`` + element. This can be used to set column widths in a CSS file for example. + + .. attribute:: ModelAdmin.list_display_links Set ``list_display_links`` to control which fields in ``list_display`` diff --git a/docs/releases/1.6.txt b/docs/releases/1.6.txt index 4847f6b035..2022a46c08 100644 --- a/docs/releases/1.6.txt +++ b/docs/releases/1.6.txt @@ -101,6 +101,9 @@ Minor features context through to feed templates using a new `Feed.get_context_data()` callback. +* The admin list columns have a ``column-<field_name>`` class in the HTML + so the columns header can be styled with CSS, e.g. to set a column width. + Backwards incompatible changes in 1.6 ===================================== |
