'Returns the team with team_id, or throws Http404 if it does not exist.'

def get_team(self, team_id):

    try:
        return CourseTeam.objects.get(team_id=team_id)
    except CourseTeam.DoesNotExist:
        raise Http404
