From ab13ced50c6981f2b49a3085da7267bf415bb774 Mon Sep 17 00:00:00 2001 From: Josiah White Date: Sat, 22 Oct 2022 20:13:18 -0700 Subject: [PATCH] Fixed #27587 -- Removing pprint, showing more accurate console text. --- docs/intro/tutorial02.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt index e7d727403e..ccb7247f89 100644 --- a/docs/intro/tutorial02.txt +++ b/docs/intro/tutorial02.txt @@ -477,10 +477,9 @@ Save these changes and start a new Python interactive shell by running >>> q ]> # Print the SQL used to query the database - >>> from pprint import pprint - >>> pprint(q.query) - ('SELECT "polls_question"."id", "polls_question"."question_text", ' - '"polls_question"."pub_date" FROM "polls_question"') + >>> print(q.query) + SELECT "polls_question"."id", "polls_question"."question_text", + "polls_question"."pub_date" FROM "polls_question" # Django provides a rich database lookup API that's entirely driven by # keyword arguments.