Skip to content

Multi school support #7

Description

@mmcinnestaylor

Background

The PCS currently treats all contest teams as affiliates of FSU. A team's organization affiliation appears as an attribute in the DOMjudge scoreboard. Implementing support by allowing registrants to select an institution affiliation during team creation will enable future contests to cater to a wider audience.

Changes

  • Create a Schools model to represent an institution
    • Attrs:
      • name: ex. Florida State University
      • short_name: ex. FSU
      • country: Country code in ISO 3166-1 alpha-3 format
  • Update django-import-export settings to enable School data to be uploaded within Django admin
  • Add a school attribute to the Team model
    • Foreign key relationship with School model
  • Update Team creation form (src/register/forms.py) to allow user to select a school
  • Update the DOMjudge file creation Celery task (src/contestadmin/tasks.py) to use Team.school as a team's affiliation
    • name, short_name, country
    • The current implementation uses a hardcoded values of Florida State University, FSU, USA

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions