Browse Source

Migrace: Reseni.text_cely budiz od vzdycky jen FK na ReseniNode

middleware_test
Pavel Turinsky (DebianVM @ Zr) 4 years ago
parent
commit
3b646a1099
  1. 5
      seminar/migrations/0049_auto_20190430_2354.py
  2. 5
      seminar/migrations/0050_auto_20190510_2228.py
  3. 2
      seminar/migrations/0051_resitel_to_osoba.py
  4. 2
      seminar/migrations/0064_auto_20190610_2358.py
  5. 7
      seminar/migrations/0066c_reseninode.py
  6. 2
      seminar/migrations/0077_auto_20200318_2146.py

5
seminar/migrations/0049_auto_20190430_2354.py

@ -480,11 +480,6 @@ class Migration(migrations.Migration):
name='resitele',
field=models.ManyToManyField(help_text='Seznam autorů řešení', through='seminar.Reseni_Resitele', to='seminar.Resitel', verbose_name='autoři řešení'),
),
migrations.AddField(
model_name='reseni',
name='text_cely',
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reseni_cely_set', to='seminar.Text', verbose_name='Plná verze textu řešení'),
),
migrations.AddField(
model_name='reseni',
name='text_zkraceny',

5
seminar/migrations/0050_auto_20190510_2228.py

@ -23,11 +23,6 @@ class Migration(migrations.Migration):
name='osoba',
field=models.OneToOneField(help_text='osobní údaje organizátora', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='org', to='seminar.Osoba', verbose_name='osoba'),
),
migrations.AlterField(
model_name='reseni',
name='text_cely',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='reseni_cely_set', to='seminar.Text', verbose_name='Plná verze textu řešení'),
),
migrations.AlterField(
model_name='resitel',
name='osoba',

2
seminar/migrations/0051_resitel_to_osoba.py

@ -81,7 +81,7 @@ def osoba_to_resitel(apps, schema_editor):
class Migration(migrations.Migration):
dependencies = [
('seminar', '0050_auto_20190510_2228'),
('seminar', '0066c_reseninode'),
]
operations = [

2
seminar/migrations/0064_auto_20190610_2358.py

@ -92,7 +92,7 @@ class Migration(migrations.Migration):
migrations.AlterField(
model_name='reseni',
name='text_cely',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='reseni_cely_set', to='seminar.Text', verbose_name='Plná verze textu řešení'),
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='reseni_cely_set', to='seminar.ReseniNode', verbose_name='Plná verze textu řešení'),
),
migrations.AlterField(
model_name='reseni_resitele',

7
seminar/migrations/0066c_reseninode.py

@ -8,7 +8,7 @@ class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('seminar', '0066b_orgtextnode'),
('seminar', '0050_auto_20190510_2228'),
]
operations = [
@ -25,5 +25,10 @@ class Migration(migrations.Migration):
},
bases=('seminar.treenode',),
),
migrations.AddField(
model_name='reseni',
name='text_cely',
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='reseni_cely_set', to='seminar.ReseniNode', verbose_name='Plná verze textu řešení'),
),
]

2
seminar/migrations/0077_auto_20200318_2146.py

@ -7,7 +7,7 @@ import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('seminar', '0066c_reseninode'),
('seminar', '0066b_orgtextnode'),
]
operations = [

Loading…
Cancel
Save