mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Corrected description of list_display being a list in tutorial 7.
This commit is contained in:
parent
8bbf73ca74
commit
c223d14025
2 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,7 @@ Here's what it looks like at this point:
|
|||
By default, Django displays the ``str()`` of each object. But sometimes it'd be
|
||||
more helpful if we could display individual fields. To do that, use the
|
||||
:attr:`~django.contrib.admin.ModelAdmin.list_display` admin option, which is a
|
||||
tuple of field names to display, as columns, on the change list page for the
|
||||
list of field names to display, as columns, on the change list page for the
|
||||
object:
|
||||
|
||||
.. code-block:: python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue