Ticket #18173: ticket18173-patch.diff

File ticket18173-patch.diff, 1.3 KB (added by vanessagomes, 3 years ago)

Description of get_changelist was moved to the methods section.

  • docs/ref/contrib/admin/index.txt

    diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
    index 7aca098..ad4f6ba 100644
    a b subclass:: 
    371371        because ``raw_id_fields`` and ``radio_fields`` imply custom widgets of
    372372        their own.
    373373
    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 
    380374.. attribute:: ModelAdmin.inlines
    381375
    382376    See :class:`InlineModelAdmin` objects below.
    templates used by the :class:`ModelAdmin` views: 
    11681162                        kwargs['choices'] += (('ready', 'Ready for deployment'),)
    11691163                return super(MyModelAdmin, self).formfield_for_choice_field(db_field, request, **kwargs)
    11701164
     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
    11711171.. method:: ModelAdmin.has_add_permission(self, request)
    11721172
    11731173    Should return ``True`` if adding an object is permitted, ``False``
Back to Top