def _graph_y_query(self):
    if self.use_opportunities:
        return 'count(*)'
    return super(Team, self)._graph_y_query()
def _graph_y_query(self):
    if self.use_opportunities:
        return 'count(*)'
    return super(Team, self)._graph_y_query()