From 86f0779d09f97af0dc835aa83fab42cbdc34bb7b Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Thu, 31 Jan 2019 19:09:08 +0500 Subject: [2.1.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(-) (limited to 'docs') diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 5b6a2f22be..8be062305f 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -3449,7 +3449,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() , , ]> -- cgit v1.3