def _graph_get_model(self):
    if self.use_opportunities:
        return 'crm.lead'
    return super(Team, self)._graph_get_model()
def _graph_get_model(self):
    if self.use_opportunities:
        return 'crm.lead'
    return super(Team, self)._graph_get_model()