From cf70c96ce08bec8834ada695451cc915f7558dbd Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Thu, 8 Sep 2011 13:25:00 +0000 Subject: Fixed #15997 -- Added `list_max_show_all` option to `ModelAdmin` in replacement for a global module level variable. Thanks, jsdalton. git-svn-id: http://code.djangoproject.com/svn/django/trunk@16725 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/admin/index.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 40ef31ca99..d68197e57b 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -695,6 +695,15 @@ subclass:: The ``FieldListFilter`` API is currently considered internal and prone to refactoring. +.. attribute:: ModelAdmin.list_max_show_all + + .. versionadded:: 1.4 + + Set ``list_max_show_all`` to control how many items can appear on a "Show + all" admin change list page. The admin will display a "Show all" link on the + change list only if the total result count is less than or equal to this + setting. By default, this is set to ``200``. + .. attribute:: ModelAdmin.list_per_page Set ``list_per_page`` to control how many items appear on each paginated -- cgit v1.3