From ae749dec55471c68de1b83488853755897e0937a Mon Sep 17 00:00:00 2001 From: Mary K Date: Mon, 18 Dec 2023 20:22:34 +0700 Subject: [PATCH] =?UTF-8?q?Fix=20=D0=BC=D0=B8=D0=B3=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...gnosis_alter_player_discipline_and_more.py | 44 +++++++++++++++++++ .../0003_alter_player_patronymic.py | 18 -------- 2 files changed, 44 insertions(+), 18 deletions(-) create mode 100644 adaptive_hockey_federation/main/migrations/0002_alter_player_diagnosis_alter_player_discipline_and_more.py delete mode 100644 adaptive_hockey_federation/main/migrations/0003_alter_player_patronymic.py diff --git a/adaptive_hockey_federation/main/migrations/0002_alter_player_diagnosis_alter_player_discipline_and_more.py b/adaptive_hockey_federation/main/migrations/0002_alter_player_diagnosis_alter_player_discipline_and_more.py new file mode 100644 index 00000000..eee8c515 --- /dev/null +++ b/adaptive_hockey_federation/main/migrations/0002_alter_player_diagnosis_alter_player_discipline_and_more.py @@ -0,0 +1,44 @@ +# Generated by Django 4.2.8 on 2023-12-18 13:18 + +import django.db.models.deletion +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('main', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='player', + name='diagnosis', + field=models.ForeignKey(help_text='Диагноз', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='player_diagnosis', to='main.diagnosis', verbose_name='Диагноз'), + ), + migrations.AlterField( + model_name='player', + name='discipline', + field=models.ForeignKey(help_text='Дисциплина', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='player_disciplines', to='main.discipline', verbose_name='Дисциплина'), + ), + migrations.AlterField( + model_name='staffteammember', + name='staff_member', + field=models.ForeignKey(help_text='Сотрудник', on_delete=django.db.models.deletion.CASCADE, to='main.staffmember', verbose_name='Сотрудник'), + ), + migrations.AlterField( + model_name='team', + name='city', + field=models.ForeignKey(help_text='Город откуда команда', on_delete=django.db.models.deletion.CASCADE, to='main.city', verbose_name='Город откуда команда'), + ), + migrations.AlterField( + model_name='team', + name='discipline_name', + field=models.ForeignKey(help_text='Дисциплина команды', on_delete=django.db.models.deletion.CASCADE, to='main.disciplinename', verbose_name='Дисциплина команды'), + ), + migrations.AlterField( + model_name='team', + name='staff_team_member', + field=models.ForeignKey(help_text='Сотрудник команды', on_delete=django.db.models.deletion.CASCADE, to='main.staffteammember', verbose_name='Сотрудник команды'), + ), + ] diff --git a/adaptive_hockey_federation/main/migrations/0003_alter_player_patronymic.py b/adaptive_hockey_federation/main/migrations/0003_alter_player_patronymic.py deleted file mode 100644 index aacc2004..00000000 --- a/adaptive_hockey_federation/main/migrations/0003_alter_player_patronymic.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 4.2.8 on 2023-12-16 13:59 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('main', '0002_alter_player_patronymic'), - ] - - operations = [ - migrations.AlterField( - model_name='player', - name='patronymic', - field=models.CharField(blank=True, default='--пусто--', help_text='Отчество', max_length=256, verbose_name='Отчество'), - ), - ]