def add_to_query(self, query, alias, col, source, is_summary):
        """
        Add the aggregate to the nominated query.

        Expects col to be a tuple (which means this can only be used to count
        related fields), and transforms it into a NotDeletedCountColumn.

        """
        try:
            table, field = col
        except __HOLE__:
            table, field = None, col
        col = NotDeletedCountColumn(table, field)
        return super(NotDeletedCount, self).add_to_query(
            query, alias, col, source, is_summary)
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/mtmodel.py/NotDeletedCount.add_to_query