1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

[1.11.x] Fixed #28352 -- Corrected QuerySet.values_list() return type in docs examples.

Backport of babe9e64a6 and
2457c1866e from master
This commit is contained in:
Irindu Indeera
2017-07-11 23:45:17 +05:30
committed by Tim Graham
parent b2ebc47a22
commit fe7b456825
3 changed files with 12 additions and 12 deletions

View File

@@ -229,7 +229,7 @@ ones:
>>> fruit.name = 'Pear'
>>> fruit.save()
>>> Fruit.objects.values_list('name', flat=True)
['Apple', 'Pear']
<QuerySet ['Apple', 'Pear']>
:attr:`~Field.unique`
If ``True``, this field must be unique throughout the table.