From c223d14025dd9ef0d354332c537ed8622a1ec29c Mon Sep 17 00:00:00 2001 From: Aleksander Milinkevich <77437506+milinsoft@users.noreply.github.com> Date: Thu, 11 Apr 2024 23:00:17 +0200 Subject: [PATCH] Corrected description of list_display being a list in tutorial 7. --- AUTHORS | 1 + docs/intro/tutorial07.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 4fb830afb6..5569d783f6 100644 --- a/AUTHORS +++ b/AUTHORS @@ -128,6 +128,7 @@ answer newbie questions, and generally made Django that much better: av0000@mail.ru Axel Haustant Aymeric Augustin + Aleksander Milinkevich Bahadır Kandemir Baishampayan Ghose Baptiste Mispelon diff --git a/docs/intro/tutorial07.txt b/docs/intro/tutorial07.txt index 8cb5dd5d5a..b47ae14bc2 100644 --- a/docs/intro/tutorial07.txt +++ b/docs/intro/tutorial07.txt @@ -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