From 054ab1e00fe59a103b6b8ff29bc7930c7d492406 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Zar=C4=99bski?= Date: Wed, 23 Sep 2020 11:47:31 +0200 Subject: [PATCH] Fixed example of QuerySet.explain() with flags in docs. --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index ef392be282a..9e129932b26 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2725,7 +2725,7 @@ PostgreSQL's ``'TEXT'`` output and is used by default, if supported. Some databases accept flags that can return more information about the query. Pass these flags as keyword arguments. For example, when using PostgreSQL:: - >>> print(Blog.objects.filter(title='My Blog').explain(verbose=True)) + >>> print(Blog.objects.filter(title='My Blog').explain(verbose=True, analyze=True)) Seq Scan on public.blog (cost=0.00..35.50 rows=10 width=12) (actual time=0.004..0.004 rows=10 loops=1) Output: id, title Filter: (blog.title = 'My Blog'::bpchar)