QuerySet.distinct respects query. Closes #64.

This commit is contained in:
Harry Marr
2010-10-03 15:22:47 +01:00
parent 4012722a8d
commit 556eed0151
2 changed files with 8 additions and 4 deletions

View File

@@ -649,7 +649,7 @@ class QuerySet(object):
.. versionadded:: 0.4
"""
return self._collection.distinct(field)
return self._cursor.distinct(field)
def only(self, *fields):
"""Load only a subset of this document's fields. ::