1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Corrected description of list_display being a list in tutorial 7.

This commit is contained in:
Aleksander Milinkevich 2024-04-11 23:00:17 +02:00 committed by GitHub
parent 8bbf73ca74
commit c223d14025
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -128,6 +128,7 @@ answer newbie questions, and generally made Django that much better:
av0000@mail.ru
Axel Haustant <noirbizarre@gmail.com>
Aymeric Augustin <aymeric.augustin@m4x.org>
Aleksander Milinkevich <milinsoft@gmail.com>
Bahadır Kandemir <bahadir@pardus.org.tr>
Baishampayan Ghose
Baptiste Mispelon <bmispelon@gmail.com>

View File

@ -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