Browse Source

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

middleware_test
Pavel Turinsky (DebianVM @ Zr) 3 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', name='resitele',
field=models.ManyToManyField(help_text='Seznam autorů řešení', through='seminar.Reseni_Resitele', to='seminar.Resitel', verbose_name='autoři řešení'), 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( migrations.AddField(
model_name='reseni', model_name='reseni',
name='text_zkraceny', name='text_zkraceny',

5
seminar/migrations/0050_auto_20190510_2228.py

@ -23,11 +23,6 @@ class Migration(migrations.Migration):
name='osoba', 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'), 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( migrations.AlterField(
model_name='resitel', model_name='resitel',
name='osoba', 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): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('seminar', '0050_auto_20190510_2228'), ('seminar', '0066c_reseninode'),
] ]
operations = [ operations = [

2
seminar/migrations/0064_auto_20190610_2358.py

@ -92,7 +92,7 @@ class Migration(migrations.Migration):
migrations.AlterField( migrations.AlterField(
model_name='reseni', model_name='reseni',
name='text_cely', 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( migrations.AlterField(
model_name='reseni_resitele', model_name='reseni_resitele',

7
seminar/migrations/0066c_reseninode.py

@ -8,7 +8,7 @@ class Migration(migrations.Migration):
dependencies = [ dependencies = [
('contenttypes', '0002_remove_content_type_name'), ('contenttypes', '0002_remove_content_type_name'),
('seminar', '0066b_orgtextnode'), ('seminar', '0050_auto_20190510_2228'),
] ]
operations = [ operations = [
@ -25,5 +25,10 @@ class Migration(migrations.Migration):
}, },
bases=('seminar.treenode',), 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): class Migration(migrations.Migration):
dependencies = [ dependencies = [
('seminar', '0066c_reseninode'), ('seminar', '0066b_orgtextnode'),
] ]
operations = [ operations = [

Loading…
Cancel
Save