Skip to content

Commit

Permalink
Refs #28352 -- Corrected another QuerySet.values_list() return type i…
Browse files Browse the repository at this point in the history
…n docs example.
  • Loading branch information
timgraham committed Jul 11, 2017
1 parent babe9e6 commit 2457c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/models/querysets.txt
Expand Up @@ -670,10 +670,10 @@ For example, notice the behavior when querying across a
:class:`~django.db.models.ManyToManyField`::

>>> Author.objects.values_list('name', 'entry__headline')
[('Noam Chomsky', 'Impressions of Gaza'),
<QuerySet [('Noam Chomsky', 'Impressions of Gaza'),
('George Orwell', 'Why Socialists Do Not Believe in Fun'),
('George Orwell', 'In Defence of English Cooking'),
('Don Quixote', None)]
('Don Quixote', None)]>

Authors with multiple entries appear multiple times and authors without any
entries have ``None`` for the entry headline.
Expand Down

0 comments on commit 2457c18

Please sign in to comment.