leaguemanager.models.baseline.membership.athlete¶
Module Contents¶
Classes¶
A member of a team or individual competitor. |
Data¶
API¶
- class leaguemanager.models.baseline.membership.athlete.Athlete¶
Bases:
leaguemanager.models.base.IndividualBaseA member of a team or individual competitor.
It is sometimes possible for an Athlete to belong to different Teams, or in some cases, fill other IndividualBase roles (officiating/managing). As a result, an Athlete is not directly linked to a Team, but rather to a AthleteMembership object. The AthleteMembership object will then define the Team an Athlete belongs to, and can also track start/end dates for said membership.
Note that many attributes are inherited from the IndividualBase class.
Attributes: id (UUID): Inherited from UUIDAuditBase user_id (UUID): ForeignKey to User. athlete_stats (UUID): ForeignKey to AthleteStats. label (str): If present, used to identify the Athlete. birth_date (datetime): Inherited from IndividualBase. birth_year (int): Inherited from IndividualBase. sex (str): Inherited from IndividualBase. gender (str): Inherited from IndividualBase. verified (bool): Whether the Athlete has been verified to compete.
first_name (str): Inherited from IndividualBase. middle_name (str): Inherited from IndividualBase. last_name (str): Inherited from IndividualBase. full_name (str): Inherited from IndividualBase. alias (str): Inherited from IndividualBase. email (str): Inherited from IndividualBase. mobile_phone (str): Inherited from IndividualBase. created_at (datetime): Inherited from UUIDAuditBase updated_at (datetime): Inherited from UUIDAuditBase
- label: str | None¶
‘field(…)’
- verified: bool¶
‘field(…)’
- birth_date: datetime.datetime | None¶
‘field(…)’
- birth_year: int | None¶
‘field(…)’
- sex: str | None¶
‘field(…)’
- gender: str | None¶
‘field(…)’
- leaguemanager.models.baseline.membership.athlete.athlete¶
‘Table(…)’