def set_group_by(self):
        self.group_by = []
        if self.connection.features.allows_group_by_pk:
            if len(self.select) == len(self.model._meta.fields):
                self.group_by.append((self.model._meta.db_table,
                                      self.model._meta.pk.column))
                return

        for sel in self.select:
            self.group_by.append(sel)
Returns a description of the trait.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/models/sql/query.py/BaseQuery.set_group_by--crossover with--dataset/ETHPy150Open enthought/traits/traits/trait_types.py/BaseEnum.full_info