forked from TabbycatDebate/tabbycat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit updates the Python version to 3.11 and bumps packages to their update, most notably Django to version 5. There were some problems with updating to 3.12 so we'll keep it lower for now. This new version of Django brings some deprecations, such as model table indexing being more explicit. Migrations are also needed for this.
- Loading branch information
Showing
34 changed files
with
1,737 additions
and
917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.9.12 | ||
3.11.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,4 +51,4 @@ sphinx-rtd-theme = "*" | |
sphinx-intl = "*" | ||
|
||
[requires] | ||
python_version = "3.9" | ||
python_version = "3.11" |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
python-3.9.12 | ||
python-3.11.9 |
56 changes: 56 additions & 0 deletions
56
...location/migrations/0010_alter_adjudicatoradjudicatorconflict_unique_together_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Generated by Django 5.0.4 on 2024-05-04 13:21 | ||
|
||
import utils.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('adjallocation', '0009_auto_20200902_1208'), | ||
('draw', '0008_alter_debateteam_side_alter_teamsideallocation_side'), | ||
('participants', '0021_team_seed'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatoradjudicatorconflict', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorinstitutionconflict', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorteamconflict', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='debateadjudicator', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='teaminstitutionconflict', | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatoradjudicatorconflict', | ||
constraint=utils.models.UniqueConstraint(fields=('adjudicator1', 'adjudicator2'), name='adjallo_adjudicatoradjudicatorconflict_adjudicator1__adjudicator2_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorinstitutionconflict', | ||
constraint=utils.models.UniqueConstraint(fields=('adjudicator', 'institution'), name='adjallo_adjudicatorinstitutionconflict_adjudicator__institution_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorteamconflict', | ||
constraint=utils.models.UniqueConstraint(fields=('adjudicator', 'team'), name='adjallo_adjudicatorteamconflict_adjudicator__team_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='debateadjudicator', | ||
constraint=utils.models.UniqueConstraint(fields=('debate', 'adjudicator'), name='adjallo_debateadjudicator_debate__adjudicator_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='teaminstitutionconflict', | ||
constraint=utils.models.UniqueConstraint(fields=('team', 'institution'), name='adjallo_teaminstitutionconflict_team__institution_uniq'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 80 additions & 0 deletions
80
tabbycat/adjfeedback/migrations/0015_alter_adjudicatorfeedback_unique_together_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Generated by Django 5.0.4 on 2024-05-04 13:21 | ||
|
||
import utils.models | ||
from django.conf import settings | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('adjallocation', '0010_alter_adjudicatoradjudicatorconflict_unique_together_and_more'), | ||
('adjfeedback', '0014_alter_adjudicatorfeedback_submitter_type'), | ||
('draw', '0008_alter_debateteam_side_alter_teamsideallocation_side'), | ||
('participants', '0021_team_seed'), | ||
('tournaments', '0010_alter_round_draw_type'), | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedback', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackbooleananswer', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackfloatanswer', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackintegeranswer', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackmanyanswer', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackquestion', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='adjudicatorfeedbackstringanswer', | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedback', | ||
constraint=utils.models.UniqueConstraint(fields=('adjudicator', 'source_adjudicator', 'source_team', 'version'), name='adjfeed_adjudicatorfeedback_adjudicator__source_adjudicator__source_team__version_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackbooleananswer', | ||
constraint=utils.models.UniqueConstraint(fields=('question', 'feedback'), name='adjfeed_adjudicatorfeedbackbooleananswer_question__feedback_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackfloatanswer', | ||
constraint=utils.models.UniqueConstraint(fields=('question', 'feedback'), name='adjfeed_adjudicatorfeedbackfloatanswer_question__feedback_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackintegeranswer', | ||
constraint=utils.models.UniqueConstraint(fields=('question', 'feedback'), name='adjfeed_adjudicatorfeedbackintegeranswer_question__feedback_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackmanyanswer', | ||
constraint=utils.models.UniqueConstraint(fields=('question', 'feedback'), name='adjfeed_adjudicatorfeedbackmanyanswer_question__feedback_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackquestion', | ||
constraint=utils.models.UniqueConstraint(fields=('tournament', 'reference'), name='adjfeed_adjudicatorfeedbackquestion_tournament__reference_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackquestion', | ||
constraint=utils.models.UniqueConstraint(fields=('tournament', 'seq'), name='adjfeed_adjudicatorfeedbackquestion_tournament__seq_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='adjudicatorfeedbackstringanswer', | ||
constraint=utils.models.UniqueConstraint(fields=('question', 'feedback'), name='adjfeed_adjudicatorfeedbackstringanswer_question__feedback_uniq'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
tabbycat/availability/migrations/0006_alter_roundavailability_unique_together_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Generated by Django 5.0.4 on 2024-05-04 13:21 | ||
|
||
import utils.models | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('availability', '0005_auto_20180307_2217'), | ||
('contenttypes', '0002_remove_content_type_name'), | ||
('tournaments', '0010_alter_round_draw_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='roundavailability', | ||
unique_together=set(), | ||
), | ||
migrations.AddConstraint( | ||
model_name='roundavailability', | ||
constraint=utils.models.UniqueConstraint(fields=('round', 'content_type', 'object_id'), name='availab_roundavailability_round__content_type__object_id_uniq'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tabbycat/breakqual/migrations/0006_alter_breakcategory_unique_together_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Generated by Django 5.0.4 on 2024-05-04 13:21 | ||
|
||
import utils.models | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('breakqual', '0005_remove_league_fields'), | ||
('participants', '0021_team_seed'), | ||
('tournaments', '0010_alter_round_draw_type'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterUniqueTogether( | ||
name='breakcategory', | ||
unique_together=set(), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='breakingteam', | ||
unique_together=set(), | ||
), | ||
migrations.AlterIndexTogether( | ||
name='breakcategory', | ||
index_together=set(), | ||
), | ||
migrations.AlterField( | ||
model_name='breakcategory', | ||
name='is_general', | ||
field=models.BooleanField(help_text='Are teams eligible for this break by default', verbose_name='is general'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='breakcategory', | ||
constraint=utils.models.UniqueConstraint(fields=('tournament', 'seq'), name='breakqu_breakcategory_tournament__seq_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='breakcategory', | ||
constraint=utils.models.UniqueConstraint(fields=('tournament', 'slug'), name='breakqu_breakcategory_tournament__slug_uniq'), | ||
), | ||
migrations.AddConstraint( | ||
model_name='breakingteam', | ||
constraint=utils.models.UniqueConstraint(fields=('break_category', 'team'), name='breakqu_breakingteam_break_category__team_uniq'), | ||
), | ||
] |
Oops, something went wrong.