django-nonrel/mongodb-engine — pull request #122 by dconlon (2012-03-27 08:41:46+00:00)
Title: Implementation of distinct()

Replacement for https://github.com/django-nonrel/mongodb-engine/pull/120 on develop branch.

It did strike me after sending the last pull request that our distinct() returns the result of the distinct query as a list, whereas https://docs.djangoproject.com/en/dev/ref/models/querysets/#distinct returns a new QuerySet. Given the mongodb implementation, I don't think its possible to replicate the behavior of django's distinct() in various ways but I thought I'd note this, should anyone wants to rename to mongo_distinct() or something else that makes the difference clear. I'm happy as it is though :-)

Thank you all for your help.