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
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
Schoolsmodel to represent an institutionname: ex.Florida State Universityshort_name: ex.FSUcountry: Country code in ISO 3166-1 alpha-3 formatdjango-import-exportsettings to enableSchooldata to be uploaded within Django adminschoolattribute to theTeammodelSchoolmodelsrc/register/forms.py) to allow user to select a schoolsrc/contestadmin/tasks.py) to useTeam.schoolas a team's affiliationname,short_name,countryFlorida State University,FSU,USA