1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28352 -- Corrected QuerySet.values_list() return type in docs examples.

This commit is contained in:
Irindu Indeera
2017-07-11 23:45:17 +05:30
committed by Tim Graham
parent f816ceedf1
commit babe9e64a6
3 changed files with 10 additions and 10 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.