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

magic-removal: Merged to [1793]

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1794 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2005-12-29 19:22:02 +00:00
parent d382abc875
commit b343704398
60 changed files with 5552 additions and 1084 deletions

View File

@@ -398,7 +398,11 @@ which rows are returned. Both ``limit`` and ``offset`` should be integers which
will be directly passed to the SQL ``LIMIT``/``OFFSET`` commands.
If ``distinct`` is True, only distinct rows will be returned. This is equivalent
to a ``SELECT DISTINCT`` SQL clause.
to a ``SELECT DISTINCT`` SQL clause. You can use this with ``get_values()`` to
get distinct values. For example, this returns the distinct first_names::
>>> people.get_values(fields=['first_name'], distinct=True)
[{'first_name': 'Adrian'}, {'first_name': 'Jacob'}, {'first_name': 'Simon'}]
Other lookup options
====================