Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #18173 - Corrected ModelAdmin documentation for get_changelist.

Thanks Keryn Knight for the report and vanessagomes for the patch.
  • Loading branch information...
commit d44aa98184ced66d95ba95d0e4a255d09c15df0c 1 parent 146aff3
Tim Graham authored July 08, 2012

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  docs/ref/contrib/admin/index.txt
12  docs/ref/contrib/admin/index.txt
@@ -371,12 +371,6 @@ subclass::
371 371
         because ``raw_id_fields`` and ``radio_fields`` imply custom widgets of
372 372
         their own.
373 373
 
374  
-.. attribute:: ModelAdmin.get_changelist
375  
-
376  
-    Returns the Changelist class to be used for listing. By default,
377  
-    ``django.contrib.admin.views.main.ChangeList`` is used. By inheriting this
378  
-    class you can change the behavior of the listing.
379  
-
380 374
 .. attribute:: ModelAdmin.inlines
381 375
 
382 376
     See :class:`InlineModelAdmin` objects below.
@@ -1168,6 +1162,12 @@ templates used by the :class:`ModelAdmin` views:
1168 1162
                         kwargs['choices'] += (('ready', 'Ready for deployment'),)
1169 1163
                 return super(MyModelAdmin, self).formfield_for_choice_field(db_field, request, **kwargs)
1170 1164
 
  1165
+.. method:: ModelAdmin.get_changelist(self, request, **kwargs)
  1166
+
  1167
+    Returns the Changelist class to be used for listing. By default,
  1168
+    ``django.contrib.admin.views.main.ChangeList`` is used. By inheriting this
  1169
+    class you can change the behavior of the listing.
  1170
+
1171 1171
 .. method:: ModelAdmin.has_add_permission(self, request)
1172 1172
 
1173 1173
     Should return ``True`` if adding an object is permitted, ``False``

0 notes on commit d44aa98

Please sign in to comment.
Something went wrong with that request. Please try again.