# Generated by Django 2.2.4 on 2019-08-13 19:45

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
	
	dependencies = [
		('contenttypes', '0002_remove_content_type_name'),
		('seminar', '0050_auto_20190510_2228'),
	]
	
	operations = [
		migrations.CreateModel(
			name='ReseniNode',
			fields=[
				('treenode_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='seminar.TreeNode')),
				('reseni', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='seminar.Reseni', verbose_name='reseni')),
			],
			options={
				'verbose_name': 'Otištěné řešení (Node)',
				'verbose_name_plural': 'Otištěná řešení (Node)',
				'db_table': 'seminar_nodes_otistene_reseni',
			},
			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í'),
        ),

	]