def add_distinct_fields(self, *field_names):
        self.distinct_fields = field_names
        self.distinct = True
Adds and resolves the given fields to the query's "distinct on" clause.
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/Django-1.6.10/django/db/models/sql/query.py/Query.add_distinct_fields