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í'),
@ -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í'),
@ -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í'),
@ -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í'),