mirror of
https://github.com/django/django.git
synced 2025-08-19 10:10:42 +00:00
[5.0.x] Corrected description of list_display being a list in tutorial 7.
Backport of c223d14025
from main
This commit is contained in:
parent
a1baaddb67
commit
86d139f6a7
2 changed files with 2 additions and 1 deletions
1
AUTHORS
1
AUTHORS
|
@ -122,6 +122,7 @@ answer newbie questions, and generally made Django that much better:
|
||||||
av0000@mail.ru
|
av0000@mail.ru
|
||||||
Axel Haustant <noirbizarre@gmail.com>
|
Axel Haustant <noirbizarre@gmail.com>
|
||||||
Aymeric Augustin <aymeric.augustin@m4x.org>
|
Aymeric Augustin <aymeric.augustin@m4x.org>
|
||||||
|
Aleksander Milinkevich <milinsoft@gmail.com>
|
||||||
Bahadır Kandemir <bahadir@pardus.org.tr>
|
Bahadır Kandemir <bahadir@pardus.org.tr>
|
||||||
Baishampayan Ghose
|
Baishampayan Ghose
|
||||||
Baptiste Mispelon <bmispelon@gmail.com>
|
Baptiste Mispelon <bmispelon@gmail.com>
|
||||||
|
|
|
@ -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
|
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
|
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
|
: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:
|
object:
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue