summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Zarębski <ppjzarebski@gmail.com>2020-09-23 11:47:31 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-09-23 11:48:08 +0200
commit562a4824d78f0ffd0daaf16cb22421767547d77c (patch)
treec017a84e060191b8144a4f959689abbbf7128785
parentfbb7881956186de0b41c68d63b42f4eb1bbd9750 (diff)
[3.1.x] Fixed example of QuerySet.explain() with flags in docs.
Backport of 054ab1e00fe59a103b6b8ff29bc7930c7d492406 from master
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index ff750dd457..14b508c512 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2640,7 +2640,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)