diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2019-01-31 19:09:08 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2019-01-31 09:09:34 -0500 |
| commit | 61875192367077a6c0edf6456039f40cd47d5a43 (patch) | |
| tree | f20a0136601ece7023b22204faba3109e348d6c4 /docs/ref | |
| parent | 89d39dc1d77338b7436abec017e392fc1bdbe3d7 (diff) | |
[2.2.x] Corrected output of Prefetch.to_attr example.
Backport of ba7a420012799b26ec9e969d0276d2ccee93c1f5 from master.
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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 - <QuerySet [<Choice: The sky>]> + [<Choice: The sky>] >>> Question.objects.prefetch_related(prefetch).get().choice_set.all() <QuerySet [<Choice: Not much>, <Choice: The sky>, <Choice: Just hacking again>]> |
