58 lines
2.3 KiB
Python
58 lines
2.3 KiB
Python
# Generated by Django 3.1 on 2020-09-19 18:15
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('member', '0001_initial'),
|
|
('auth', '0012_alter_user_first_name_max_length'),
|
|
('tournament', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='tfjmuser',
|
|
name='team',
|
|
field=models.ForeignKey(help_text='Concerns only coaches and participants.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='users', to='tournament.team', verbose_name='team'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='tfjmuser',
|
|
name='user_permissions',
|
|
field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='synthesis',
|
|
name='team',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='syntheses', to='tournament.team', verbose_name='team'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='solution',
|
|
name='team',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='solutions', to='tournament.team', verbose_name='team'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='motivationletter',
|
|
name='team',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='motivation_letters', to='tournament.team', verbose_name='team'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='authorization',
|
|
name='user',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='authorizations', to=settings.AUTH_USER_MODEL, verbose_name='user'),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='synthesis',
|
|
unique_together={('team', 'source', 'round', 'final')},
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='solution',
|
|
unique_together={('team', 'problem', 'final')},
|
|
),
|
|
]
|