From ba7a420012799b26ec9e969d0276d2ccee93c1f5 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 31 Jan 2019 19:09:08 +0500 Subject: [PATCH] Corrected output of Prefetch.to_attr example. --- 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 eae7bf877a..42b3d94722 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -3481,7 +3481,7 @@ attribute: >>> prefetch = Prefetch('choice_set', queryset=voted_choices, to_attr='voted_choices') >>> Question.objects.prefetch_related(prefetch).get().voted_choices - ]> + [] >>> Question.objects.prefetch_related(prefetch).get().choice_set.all() , , ]>