'Returns the currently selected team for the request or None
if no match.'

def get_active_team(self, request, organization, team_slug):

    try:
        team = Team.objects.get_from_cache(slug=team_slug, organization=organization)
    except Team.DoesNotExist:
        return None
    if (team.status != TeamStatus.VISIBLE):
        return None
    return team
