def team_districts(self, team):
        """
        Get districts a team has competed in.

        :param team: Team to get data on.
        :return: List of District objects.
        """
        return [District(raw) for raw in self._get('team/%s/districts' % self.team_key(team))]
def team_districts ( self , team ) : return [ District ( raw ) for raw in self . _get ( 'team/%s/districts' % self . team_key ( team ) ) ]
Get districts a team has competed in.

        :param team: Team to get data on.
        :return: List of District objects.