summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-02-24 08:58:57 -0800
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-02-24 08:58:57 -0800
commite3e0f49ecebeaaa6ed69bcc5e1655688e8321c42 (patch)
tree382b983b4220c02ac210c81351ab6153c594fdf9 /docs/ref
parent5e52dc2ade8b040f2cee743a108267562baf117e (diff)
parentb7ba4fc408c43ecee385d2ca3582697ec54ac8a6 (diff)
Merge pull request #834 from vdboor/issue_19906_list_classes
Added column-<field_name> classes to the admin list
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt7
1 files changed, 7 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``