Demo entry 6632675

export

   

Submitted by anonymous on Jul 27, 2017 at 23:41
Language: YAML. Code size: 4.0 kB.

# Have one record that looks like this for each age group.
- fields:
    bonus_points_formula: ''
    draft: false
    forfeit_against_score: 0
    forfeit_for_score: 5
    games_per_day: 3
    include_forfeits_in_played: true
    # keep these in sequence starting at 1, dictates the order on the website
    order: 1
    points_formula: 3*win + 3*bye + 2*draw + 1*loss + 3*forfeit_for
    rank_division: null
    rank_importance: null
    # leave this as null and I will set it prior to import
    season: null
    # abbreviation for use on mobile devices, use standard conventions
    short_title: B18
    # lowercase hyphen separated version of "title" field
    slug: boys-18
    slug_locked: false
    sportingpulse_url: ''
    title: Boys 18
  model: competition.division
  # keep these sequential starting at 5 to avoid conflict
  # need to be assigned as they'll be cross-referenced in other objects
  pk: 5

# Have one record per NTA
- fields:
    # this should be the ISO 3166-1 alpha-3 code
    abbreviation: ISO
    email: info@example.com
    facebook: ''
    primary: null
    primary_position: ''
    # put the full name of the NTA here, eg. England Touch Association
    short_title: National Touch Association
    # lowercase hyphen separated country name, eg. canary-islands
    slug: nation
    slug_locked: true
    # country name in english
    title: Country
    # if providing twitter handle, include the leading @ symbol
    twitter: ''
    # full url, eg. https://www.example.com/
    website: ''
    # full url, eg. https://www.youtube.com/channel
    youtube: ''
  model: competition.club
  # keep these sequential starting at 20 to avoid conflicts
  # need to be assigned as they'll be cross-referenced in other objects
  pk: 20

# Have one record per team
- fields:
    # reference to pk of competition.club entry
    club: 20
    # reference to pk of competition.division entry
    division: 4
    names_locked: true
    # keep sequential with respect to the division
    order: 1
    rank_division: null
    short_title: ''
    # should usually match fields.slug of competition.club entry
    slug: nation
    slug_locked: false
    stage_group: null
    team_clashes: []
    timeslots_after: null
    timeslots_before: null
    # should usually match fields.title of competition.club entry
    title: Country
  model: competition.team
  # keep these sequential starting at 31 to avoid conflicts
  # need to be assigned as they'll be cross-referenced in other objects
  pk: 31


# one per person
- fields:
    # reference to pk of competition.club entry
    club: 20
    # date in YYYY-MM-DD format, requires quotes to ensure string interpretation
    date_of_birth: '1999-12-31'
    # optional email address, string quotes required if not known
    email: ''
    first_name: Joseph
    # single char, M/F/X
    gender: M
    home_phone: ''
    last_name: Bloggs
    # E164 format, eg. "+442083661177"
    mobile_phone: ''
    user: null
    work_phone: ''
  model: competition.person
  # UUID4, should be easy to do programmatically, or produce a bulk set using
  # https://www.uuidgenerator.net/version4
  # will be cross referenced
  pk: 5db8eb74-92bc-450a-bcd0-e366b3ae8ce8

# one per PLAYER
- fields:
    is_player: true
    # shirt number
    number: 5
    # reference to pk of competition.person entry
    person: 5db8eb74-92bc-450a-bcd0-e366b3ae8ce8
    roles: []
    # reference to pk of competition.team entry
    team: 31
  model: competition.teamassociation
  # leave this as null and I'll populate it on import
  pk: null

# one per NON-PLAYER
- fields:
    is_player: false
    number: null
    # reference to pk of competition.person entry
    person: 5db8eb74-92bc-450a-bcd0-e366b3ae8ce8
    roles: []
    # reference to pk of competition.team entry
    team: 31
  model: competition.teamassociation
  # leave this as null and I'll populate it on import
  pk: null

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).