From 53dd301a7ec3c2a7b687a37600209b83a010ad0a Mon Sep 17 00:00:00 2001 From: cclague Date: Mon, 7 Dec 2020 22:05:33 +0000 Subject: [PATCH 1/2] Update init_prereg.py update string to str as per other modules --- core/management/commands/init_prereg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/management/commands/init_prereg.py b/core/management/commands/init_prereg.py index 954b5672..e95385c5 100644 --- a/core/management/commands/init_prereg.py +++ b/core/management/commands/init_prereg.py @@ -8,13 +8,13 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('--competition', dest='competition_name', - type=string, + type=str, default='--MissingCompetition--', help='Competition to initialize PreReg data into', ) parser.add_argument('--spreadsheet', dest='worksheet_name', - type=string, + type=str, default='--MissingSpreadsheet--', help='\n'.join([ 'Name of the Excel spreadsheet in the form: ExcelFile$SheetName.', From 35c953761c2141366be68e8546ade30a78bc50da Mon Sep 17 00:00:00 2001 From: Chris Clague Date: Tue, 5 Mar 2024 22:33:42 +0000 Subject: [PATCH 2/2] initial migration --- core/migrations/0001_initial.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/migrations/0001_initial.py b/core/migrations/0001_initial.py index f1d4dfe7..bd43ad33 100644 --- a/core/migrations/0001_initial.py +++ b/core/migrations/0001_initial.py @@ -813,7 +813,7 @@ class Migration(migrations.Migration): options={ 'verbose_name': 'Participant Option', 'verbose_name_plural': 'Participant Options', - 'index_together': {('competition', 'participant', 'option_id'), ('competition', 'option_id'), ('competition', 'participant')}, + 'indexes': [models.Index(fields=['competition', 'participant', 'option_id'], name='core_partic_competi_36c115_idx'), models.Index(fields=['competition', 'participant'], name='core_partic_competi_c665bb_idx'), models.Index(fields=['competition', 'option_id'], name='core_partic_competi_21c187_idx')], 'unique_together': {('competition', 'participant', 'option_id')}, }, ), @@ -838,7 +838,7 @@ class Migration(migrations.Migration): options={ 'verbose_name': 'Time Trial Entry', 'verbose_name_plural': 'Time Trial Entry', - 'index_together': {('event', 'start_sequence')}, + 'indexes': [models.Index(fields=['event', 'start_sequence'], name='core_entryt_event_i_f9f4e7_idx')], 'ordering': ['start_time'], 'unique_together': {('event', 'participant')}, },