Open
Description
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
- Attrs:
- Update
django-import-export
settings to enableSchool
data to be uploaded within Django admin - Add a
school
attribute to theTeam
model- Foreign key relationship with
School
model
- Foreign key relationship with
- 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 useTeam.school
as a team's affiliationname
,short_name
,country
- The current implementation uses a hardcoded values of
Florida State University
,FSU
,USA