leaguemanager.models.baseline.competition.league

Module Contents

Classes

League

Defines the top level of a competition.

Data

league

API

class leaguemanager.models.baseline.competition.league.League

Bases: leaguemanager.models.base.CompetitionBase

Defines the top level of a competition.

This is ordinarily a child of the Organization (GoverningBody) and usually refers to a recurring competition type (i.e., Soccer League, Little League Baseball, etc…). Each League can have Season and/or other CompetitionBase-type objects as children.

Attributes: id (UUID): Inherited from UUIDAuditBase organization_id (UUID): ForeignKey to Organization. competition_type (str): Describes competiton type. Inherited from CompetitionBase. name (str): Descriptive name. (i.e., Coed Hockey League, Flag Football at the Park, etc…) description (str): Optional description of the league. active (bool): Defaults to True. Can be used to deactivate this League. slug (str): Unique slug for the league, used in URLs and identifiers. created_at (datetime): Inherited from UUIDAuditBase updated_at (datetime): Inherited from UUIDAuditBase

organization_id: uuid.UUID | None

‘field(…)’

competition_type: str | None

‘field(…)’

name: str | None

‘field(…)’

description: str | None

‘field(…)’

active: bool

‘field(…)’

slug: str | None

‘field(…)’

leaguemanager.models.baseline.competition.league.league

‘Table(…)’