From 61875192367077a6c0edf6456039f40cd47d5a43 Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 31 Jan 2019 19:09:08 +0500 Subject: [PATCH] [2.2.x] Corrected output of Prefetch.to_attr example. Backport of ba7a420012799b26ec9e969d0276d2ccee93c1f5 from master. --- 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 ac7bf83e7f..8cadd73879 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -3495,7 +3495,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() , , ]>