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.
Add new model
TournamentInstitution
.
- Loading branch information
1 parent
517d3c3
commit c72b4a0
Showing
3 changed files
with
73 additions
and
1 deletion.
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
27 changes: 27 additions & 0 deletions
27
tabbycat/participants/migrations/0024_tournamentinstitution.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,27 @@ | ||
# Generated by Django 5.0.4 on 2024-09-12 20:16 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('participants', '0023_alter_unique_together_and_team_emoji'), | ||
('tournaments', '0013_scheduleevent'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TournamentInstitution', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('teams_requested', models.PositiveIntegerField(verbose_name='Team slots requested')), | ||
('teams_allocated', models.PositiveIntegerField(verbose_name='Team slots allocatd')), | ||
('adjudicators_requested', models.PositiveIntegerField(verbose_name='Adjudicator slots requested')), | ||
('adjudicators_allocated', models.PositiveIntegerField(verbose_name='Adjudicator slots allocated')), | ||
('institution', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='participants.institution', verbose_name='institution')), | ||
('tournament', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tournaments.tournament', verbose_name='tournament')), | ||
], | ||
), | ||
] |
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