diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2011-06-08 22:53:55 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2011-06-08 22:53:55 +0000 |
| commit | 207e3ed9d58fabe68477aa62f7ef41464f1761e9 (patch) | |
| tree | 91291eaa35a3d7585f61e0341e7b5d584068a9f6 /docs | |
| parent | 45e55b91435541203f517770c654675f67fa6a3b (diff) | |
Fixed #14206 - dynamic list_display support in admin
Thanks to gabejackson for the suggestion, and to cyrus for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 3ba3b1b0eb..e0ddd4ae85 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -967,6 +967,15 @@ templates used by the :class:`ModelAdmin` views: a ``dictionary``, as described above in the :attr:`ModelAdmin.prepopulated_fields` section. +.. method:: ModelAdmin.get_list_display(self, request) + + .. versionadded:: 1.4 + + The ``get_list_display`` method is given the ``HttpRequest`` and is + expected to return a ``list`` or ``tuple`` of field names that will be + displayed on the changelist view as described above in the + :attr:`ModelAdmin.list_display` section. + .. method:: ModelAdmin.get_urls(self) The ``get_urls`` method on a ``ModelAdmin`` returns the URLs to be used for |
