From 86d139f6a75eb52340dfbb183b355a05f8063543 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] [5.0.x] Corrected description of list_display being a list in tutorial 7. Backport of c223d14025dd9ef0d354332c537ed8622a1ec29c from main --- AUTHORS | 1 + docs/intro/tutorial07.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 5bbfb7d601..6825777fe5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -122,6 +122,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