Skip to content

RelayTeam

  • Engine: MongoDB (mongoengine document)
  • App: reference
  • Table/Collection: relay_team
  • Verbose name: RelayTeam

One team running in one Relay unit. Can hold detailed results. Created solely by the update_relay_teams method of TeamEntry For championships with heats and finals of 4x100 and 4x400, if the runners differed (in identity or even order) we should create a different RelayTeam record. Team might thus be named "Great Britain Men (final)"

Field Type Column/Key Null/Default PK Choices Notes
relayteam_id StringField relayteam_id null — Unique within the race, suffix A/B/C after club code
bib StringField bib null — Optional bib number for the team
competition ReferenceField → <class 'project.reference.mongo.competition.Competition'> competition — — —
event_id StringField event_id null — event_id of the event within the competition
event_name StringField event_name null — name of the event, stored for efficiency
team_id StringField team_id null — Code for the team or organisation, stored for efficiency
flag_url StringField flag_url null — Calculated on saving, from the team's flag
flag_colour StringField flag_colour null — Calculated on saving, from the team's flag
name StringField name — — Specific relay team with club/country e.g. Open Men A
name_local StringField name_local null — Local name
non_scorer BooleanField non_scorer null/dflt=False — Eliminate from team scores?
sp StringField sp null — Seed performance used
runners ListField runners null/dflt=[] — —
is_adhoc BooleanField is_adhoc null/dflt=False — Determines if correct entry page is shown.
team_category StringField team_category null — Will be one of the options provided in competition > paid re…
origin StringField origin null/dflt=MANUAL RELAY_ENTRY: Created through the relay entry process; DECLARATIONS: Created through the team declarations process; MANUAL: Manually created through the teams manage page Original process through which this relayteam was created.
time_checked_in DateTimeField time_checked_in null — —
pb StringField pb null — Personal Best
sb StringField sb null — Season Best
qp StringField qp null — Qualifying time or judge's estimate
id ObjectIdField _id — PK — —

Field names link to their fuller explanation below.

Field details

Click a field name in the table above to jump to its explanation. Fields with no help text yet show a prompt, and are the ones to improve by adding a help_text on the model field, then regenerating.

relayteam_id

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: relayteam_id
  • nullable

Unique within the race, suffix A/B/C after club code

bib

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: bib
  • nullable

Optional bib number for the team

competition

  • Engine: MongoDB
  • Type: ReferenceField → <class 'project.reference.mongo.competition.Competition'>
  • Column/Key: competition

No help text yet — add a help_text on the model field and regenerate to fill this in.

event_id

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: event_id
  • nullable

event_id of the event within the competition

event_name

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: event_name
  • nullable

name of the event, stored for efficiency

team_id

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: team_id
  • nullable

Code for the team or organisation, stored for efficiency

flag_url

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: flag_url
  • nullable

Calculated on saving, from the team's flag

flag_colour

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: flag_colour
  • nullable

Calculated on saving, from the team's flag

name

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: name

Specific relay team with club/country e.g. Open Men A

name_local

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: name_local
  • nullable

Local name

non_scorer

  • Engine: MongoDB
  • Type: BooleanField
  • Column/Key: non_scorer
  • nullable; default = False

Eliminate from team scores?

sp

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: sp
  • nullable

Seed performance used

runners

  • Engine: MongoDB
  • Type: ListField
  • Column/Key: runners
  • nullable; default = []

No help text yet — add a help_text on the model field and regenerate to fill this in.

is_adhoc

  • Engine: MongoDB
  • Type: BooleanField
  • Column/Key: is_adhoc
  • nullable; default = False

Determines if correct entry page is shown.

team_category

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: team_category
  • nullable

Will be one of the options provided in competition > paid relay entries > team category

origin

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: origin
  • nullable; default = MANUAL; choices: RELAY_ENTRY: Created through the relay entry process; DECLARATIONS: Created through the team declarations process; MANUAL: Manually created through the teams manage page

Original process through which this relayteam was created.

time_checked_in

  • Engine: MongoDB
  • Type: DateTimeField
  • Column/Key: time_checked_in
  • nullable

No help text yet — add a help_text on the model field and regenerate to fill this in.

pb

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: pb
  • nullable

Personal Best

sb

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: sb
  • nullable

Season Best

qp

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: qp
  • nullable

Qualifying time or judge's estimate

id

  • Engine: MongoDB
  • Type: ObjectIdField
  • Column/Key: _id
  • primary key; nullable

No help text yet — add a help_text on the model field and regenerate to fill this in.

Generated by docs_models management command for MongoDB.