|
@ -160,6 +160,19 @@ class Migration(migrations.Migration): |
|
|
}, |
|
|
}, |
|
|
bases=('seminar.treenode',), |
|
|
bases=('seminar.treenode',), |
|
|
), |
|
|
), |
|
|
|
|
|
migrations.CreateModel( |
|
|
|
|
|
name='PohadkaNode', |
|
|
|
|
|
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')), |
|
|
|
|
|
('pohadka', models.ForeignKey(null=True, on_delete=django.db.models.deletion.PROTECT, to='seminar.Pohadka', verbose_name='pohádka')), |
|
|
|
|
|
], |
|
|
|
|
|
options={ |
|
|
|
|
|
'verbose_name': 'Pohádka (Node)', |
|
|
|
|
|
'verbose_name_plural': 'Pohádky (Node)', |
|
|
|
|
|
'db_table': 'seminar_nodes_pohadka', |
|
|
|
|
|
}, |
|
|
|
|
|
bases=('seminar.treenode',), |
|
|
|
|
|
), |
|
|
migrations.AddField( |
|
|
migrations.AddField( |
|
|
model_name='treenode', |
|
|
model_name='treenode', |
|
|
name='first_child', |
|
|
name='first_child', |
|
|