Fixed #16195 -- Added docs for ModelAdmin's get_changelist method. Thanks, msaelices.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-06-11 15:43:51 +00:00
parent 4ab5a43785
commit 5dc7be2192
1 changed files with 8 additions and 0 deletions

View File

@ -355,6 +355,14 @@ subclass::
because ``raw_id_fields`` and ``radio_fields`` imply custom widgets of because ``raw_id_fields`` and ``radio_fields`` imply custom widgets of
their own. their own.
.. attribute:: ModelAdmin.get_changelist
.. versionchanged:: 1.2
Returns the Changelist class to be used for listing. By default,
``django.contrib.admin.views.main.ChangeList`` is used. By inheriting this
class you can change the behavior of the listing.
.. attribute:: ModelAdmin.inlines .. attribute:: ModelAdmin.inlines
See :class:`InlineModelAdmin` objects below. See :class:`InlineModelAdmin` objects below.