mirror of
https://github.com/django/django.git
synced 2025-08-06 20:08:20 +00:00
Added flat=False to signature of QuerySet.values_list()
This commit is contained in:
parent
fe2afcd318
commit
20f868bc5a
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ You can also refer to fields on related models with reverse relations through
|
||||||
values_list
|
values_list
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
|
|
||||||
.. method:: values_list(*fields)
|
.. method:: values_list(*fields, flat=False)
|
||||||
|
|
||||||
This is similar to ``values()`` except that instead of returning dictionaries,
|
This is similar to ``values()`` except that instead of returning dictionaries,
|
||||||
it returns tuples when iterated over. Each tuple contains the value from the
|
it returns tuples when iterated over. Each tuple contains the value from the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue