mongodb/mongo-python-driver — pull request #158 by ivancrneto (2013-02-22 14:50:01+00:00)
Title: Allowing use of query in distinct

As the documentation of mongodb shows [1], we can specify a query
when using distinct. So we can perform operations like:

>>> db.users.distinct("country", {"status": "active"})

[1]
http://docs.mongodb.org/manual/reference/method/db.collection.distinct/#db.collection.distinct