Skip to content

KnockoutUnit

  • Engine: MongoDB (mongoengine document)
  • App: reference
  • Table/Collection: unit
  • Verbose name: Unit.KnockoutUnit

DNA head-to-head field event: results holds the 6 competitors, trials the 18 duel attempts (prepopulated on init), draws any Referee's draws. calc_results() progresses the trials and is called on every save.

Field Type Column/Key Null/Default PK Choices Notes
_about EmbeddedDocumentField → embedded <class 'docengine.mongoutils.models.VersionInfo'> _about null — —
uuid StringField _id — — —
sql_unit_id IntField sql_unit_id null — Cross reference to unit summary in SQL, which will one day s…
competition ReferenceField → <class 'project.reference.mongo.competition.Competition'> competition — — —
event ReferenceField → <class 'project.reference.mongo.eventspec.EventSpec'> event — — —
heat IntField heat null/dflt=1 — —
round IntField round null/dflt=1 — —
name StringField name null — Optional name; default display will be 'Senior Men 100m roun…
name_local StringField name_local null — Optional local name
slug StringField slug null — —
location StringField location null — —
day IntField day null/dflt=1 — —
scheduled_start_time StringField scheduled_start_time null — —
actual_start_time DateTimeField actual_start_time null — —
status StringField status null/dflt=unscheduled unscheduled: Unscheduled; scheduled: Scheduled; postponed: Postponed; rescheduled: Rescheduled; delayed: Delayed; scheduled_break: ScheduledBreak; getting_ready: GettingReady; running: Running; interrupted: Interrupted; finished: Finished; cancelled: Cancelled —
results_status StringField results_status null/dflt=none none: Not seeded; seeded: No results yet; in_progress: In-progress; provisional: Provisional Results; official: Official Results —
officiating StringField officiating null — Who was the official in charge?
results EmbeddedDocumentListField results null/dflt=[] — —
note StringField note null — Note to be displayed next to results
source StringField source null — File the data came from (e.g. Lynx LIF)
remote_results_url StringField remote_results_url null — web page where results can be found in another system
unit_code StringField unit_code null — Short code for heat e.g. H1, SF2, FINAL. Calculated on save
heat_name StringField heat_name null — Name for heat e.g. Heat 1 . Calculated on save
round_name StringField round_name null — Name for round e.g. Heats, Finals . Calculated on save
show_athlete_details BooleanField show_athlete_details null/dflt=False — —
override_ce_scores BooleanField override_ce_scores null/dflt=False — Manually input athlon scores
override_places BooleanField override_places null/dflt=False — Manually input places, or allow places without times
published BooleanField published null/dflt=True — Have recent changes be published?
score_overrides StringField score_overrides null — Allow scores of any team to be adjusted with a notation.
_cls StringField _cls null — —
trials EmbeddedDocumentListField trials null/dflt=[] — —
draws EmbeddedDocumentListField draws null/dflt=[] — —

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.

_about

  • Engine: MongoDB
  • Type: EmbeddedDocumentField → embedded <class 'docengine.mongoutils.models.VersionInfo'>
  • Column/Key: _about
  • nullable

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

uuid

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

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

sql_unit_id

  • Engine: MongoDB
  • Type: IntField
  • Column/Key: sql_unit_id
  • nullable

Cross reference to unit summary in SQL, which will one day supercede this

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

  • Engine: MongoDB
  • Type: ReferenceField → <class 'project.reference.mongo.eventspec.EventSpec'>
  • Column/Key: event

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

heat

  • Engine: MongoDB
  • Type: IntField
  • Column/Key: heat
  • nullable; default = 1

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

round

  • Engine: MongoDB
  • Type: IntField
  • Column/Key: round
  • nullable; default = 1

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

name

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

Optional name; default display will be 'Senior Men 100m round 1 heat 3' or some such

name_local

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

Optional local name

slug

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

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

location

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

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

day

  • Engine: MongoDB
  • Type: IntField
  • Column/Key: day
  • nullable; default = 1

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

scheduled_start_time

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

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

actual_start_time

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

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

status

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: status
  • nullable; default = unscheduled; choices: unscheduled: Unscheduled; scheduled: Scheduled; postponed: Postponed; rescheduled: Rescheduled; delayed: Delayed; scheduled_break: ScheduledBreak; getting_ready: GettingReady; running: Running; interrupted: Interrupted; finished: Finished; cancelled: Cancelled

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

results_status

  • Engine: MongoDB
  • Type: StringField
  • Column/Key: results_status
  • nullable; default = none; choices: none: Not seeded; seeded: No results yet; in_progress: In-progress; provisional: Provisional Results; official: Official Results

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

officiating

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

Who was the official in charge?

results

  • Engine: MongoDB
  • Type: EmbeddedDocumentListField
  • Column/Key: results
  • nullable; default = []

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

note

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

Note to be displayed next to results

source

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

File the data came from (e.g. Lynx LIF)

remote_results_url

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

web page where results can be found in another system

unit_code

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

Short code for heat e.g. H1, SF2, FINAL. Calculated on save

heat_name

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

Name for heat e.g. Heat 1 . Calculated on save

round_name

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

Name for round e.g. Heats, Finals . Calculated on save

show_athlete_details

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

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

override_ce_scores

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

Manually input athlon scores

override_places

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

Manually input places, or allow places without times

published

  • Engine: MongoDB
  • Type: BooleanField
  • Column/Key: published
  • nullable; default = True

Have recent changes be published?

score_overrides

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

Allow scores of any team to be adjusted with a notation.

_cls

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

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

trials

  • Engine: MongoDB
  • Type: EmbeddedDocumentListField
  • Column/Key: trials
  • nullable; default = []

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

draws

  • Engine: MongoDB
  • Type: EmbeddedDocumentListField
  • Column/Key: draws
  • nullable; default = []

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.