diff --git a/.coveragerc b/.coveragerc index 571377854..e2e7969b8 100644 --- a/.coveragerc +++ b/.coveragerc @@ -6,6 +6,7 @@ source = wagtail omit = */migrations/* + docs/conf.py [report] diff --git a/docs/reference/contrib/modeladmin/indexview.rst b/docs/reference/contrib/modeladmin/indexview.rst index b3d23a9e7..13cb73623 100644 --- a/docs/reference/contrib/modeladmin/indexview.rst +++ b/docs/reference/contrib/modeladmin/indexview.rst @@ -25,16 +25,10 @@ on the ``ModelAdmin`` class itself. Default value: ``('__str__',)`` -Set ``list_display`` to control which fields are displayed in the IndexView +Set ``list_display`` to control which fields are displayed in the ``IndexView`` for your model. -Example - -``` -list_display = ('first_name', 'last_name') -``` - -You have three possible values that can be used in list_display: +You have three possible values that can be used in ``list_display``: - A field of the model. For example: @@ -370,12 +364,12 @@ For example: **Must return**: A dictionary -The `get_extra_attrs_for_row` method allows you to add html attributes to -the opening `