From b7ba4fc408c43ecee385d2ca3582697ec54ac8a6 Mon Sep 17 00:00:00 2001 From: Diederik van der Boor Date: Sun, 24 Feb 2013 17:31:26 +0100 Subject: Add column- classes to the admin list This simplifies CSS styling to set column widths. --- docs/ref/contrib/admin/index.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'docs/ref') 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-`` on each ```` + 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`` -- cgit v1.3