Ticket #20408: django_docs_ref_models_queryset.diff

File django_docs_ref_models_queryset.diff, 927 bytes (added by alextreme, 12 years ago)
  • docs/ref/models/querysets.txt

    diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
    index ffada19..f7b39f6 100644
    a b values_list  
    521521
    522522.. method:: values_list(*fields)
    523523
    524 This is similar to ``values()`` except that instead of returning dictionaries,
    525 it returns tuples when iterated over. Each tuple contains the value from the
    526 respective field passed into the ``values_list()`` call — so the first item is
    527 the first field, etc. For example::
     524Returns a ``ValuesListQuerySet``. It is similar to ``values()`` except that
     525instead of returning dictionaries, it returns tuples when iterated over.
     526Each tuple contains the value from the respective field passed into the
     527``values_list()`` call — so the first item is the first field, etc.
     528For example::
    528529
    529530    >>> Entry.objects.values_list('id', 'headline')
    530531    [(1, u'First entry'), ...]
Back to Top