def _extra_sql_conditions(self):
    if self.use_opportunities:
        return "AND type LIKE 'opportunity'"
    return super(Team, self)._extra_sql_conditions()
def _extra_sql_conditions(self):
    if self.use_opportunities:
        return "AND type LIKE 'opportunity'"
    return super(Team, self)._extra_sql_conditions()