Refs #28352 -- Corrected another QuerySet.values_list() return type in docs example.

This commit is contained in:
Tim Graham 2017-07-11 14:22:46 -04:00
parent babe9e64a6
commit 2457c1866e
1 changed files with 2 additions and 2 deletions

View File

@ -670,10 +670,10 @@ For example, notice the behavior when querying across a
:class:`~django.db.models.ManyToManyField`:: :class:`~django.db.models.ManyToManyField`::
>>> Author.objects.values_list('name', 'entry__headline') >>> 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', 'Why Socialists Do Not Believe in Fun'),
('George Orwell', 'In Defence of English Cooking'), ('George Orwell', 'In Defence of English Cooking'),
('Don Quixote', None)] ('Don Quixote', None)]>
Authors with multiple entries appear multiple times and authors without any Authors with multiple entries appear multiple times and authors without any
entries have ``None`` for the entry headline. entries have ``None`` for the entry headline.