summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJavier Rojas <jerojasro@devnull.li>2016-12-12 00:51:23 -0500
committerTim Graham <timograham@gmail.com>2016-12-15 15:57:04 -0500
commit8ab8a8910c6f9382610cba5b06ac5c110d52b4b2 (patch)
tree92a4e10b9af0328dd98580ecf095fe2ed983c0b3 /docs
parent986c7d522a4c2351108ba1dc5f58b5fd4ed75ba0 (diff)
Doc'd how ModelAdmin.list_display uses short_description.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/contrib/admin/index.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index bcbdc1fb42..59d756db99 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -641,6 +641,10 @@ subclass::
:func:`~django.utils.html.format_html_join`, or
:func:`~django.utils.safestring.mark_safe` instead.
+ * As some examples have already demonstrated, when using a callable, a
+ model method, or a ``ModelAdmin`` method, you can customize the column's
+ title by adding a ``short_description`` attribute to the callable.
+
* If the value of a field is ``None``, an empty string, or an iterable
without elements, Django will display ``-`` (a dash). You can override
this with :attr:`AdminSite.empty_value_display`::