Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
191 lines
9.4 KiB
191 lines
9.4 KiB
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.20 on 2019-05-10 20:28
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('seminar', '0049_auto_20190430_2354'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='konfera',
|
|
name='reseni',
|
|
field=models.OneToOneField(blank=True, help_text='Účastnický přípěvek o konfeře', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='konfery', to='seminar.Reseni', verbose_name='článek ke konfeře'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='organizator',
|
|
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',
|
|
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.CASCADE, to='seminar.Osoba', verbose_name='osoba'),
|
|
),
|
|
migrations.CreateModel(
|
|
name='TreeNode',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
],
|
|
options={
|
|
'verbose_name': 'TreeNode',
|
|
'verbose_name_plural': 'TreeNody',
|
|
'db_table': 'seminar_nodes_treenode',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='CisloNode',
|
|
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')),
|
|
('cislo', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='seminar.Cislo', verbose_name='číslo')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Číslo (Node)',
|
|
'verbose_name_plural': 'Čísla (Node)',
|
|
'db_table': 'seminar_nodes_cislo',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='ClanekNode',
|
|
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')),
|
|
('clanek', models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='seminar.Clanek', verbose_name='článek')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Článek (Node)',
|
|
'verbose_name_plural': 'Články (Node)',
|
|
'db_table': 'seminar_nodes_clanek',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='KonferaNode',
|
|
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')),
|
|
('konfera', models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='seminar.Konfera', verbose_name='konfera')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Konfera (Node)',
|
|
'verbose_name_plural': 'Konfery (Node)',
|
|
'db_table': 'seminar_nodes_konfera',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='MezicisloNode',
|
|
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')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Mezičíslo (Node)',
|
|
'verbose_name_plural': 'Mezičísla (Node)',
|
|
'db_table': 'seminar_nodes_mezicislo',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='RocnikNode',
|
|
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')),
|
|
('rocnik', models.OneToOneField(on_delete=django.db.models.deletion.PROTECT, to='seminar.Rocnik', verbose_name='ročník')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Ročník (Node)',
|
|
'verbose_name_plural': 'Ročníky (Node)',
|
|
'db_table': 'seminar_nodes_rocnik',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='TemaVCisleNode',
|
|
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')),
|
|
('tema', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='seminar.Tema', verbose_name='téma v čísle')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Téma v čísle (Node)',
|
|
'verbose_name_plural': 'Témata v čísle (Node)',
|
|
'db_table': 'seminar_nodes_temavcisle',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='TextNode',
|
|
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')),
|
|
('text', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='seminar.Text', verbose_name='text')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Text (Node)',
|
|
'verbose_name_plural': 'Text (Node)',
|
|
'db_table': 'seminar_nodes_obsah',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='UlohaVzorakNode',
|
|
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')),
|
|
('uloha', models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='seminar.Uloha', verbose_name='úloha')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Vzorák úlohy (Node)',
|
|
'verbose_name_plural': 'Vzoráky úloh (Node)',
|
|
'db_table': 'seminar_nodes_uloha_vzorak',
|
|
},
|
|
bases=('seminar.treenode',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='UlohaZadaniNode',
|
|
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')),
|
|
('uloha', models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='seminar.Uloha', verbose_name='úloha')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Zadání úlohy (Node)',
|
|
'verbose_name_plural': 'Zadání úloh (Node)',
|
|
'db_table': 'seminar_nodes_uloha_zadani',
|
|
},
|
|
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.OneToOneField(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(
|
|
model_name='treenode',
|
|
name='first_child',
|
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='seminar.TreeNode', verbose_name='první potomek'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='treenode',
|
|
name='root',
|
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='potomci_set', to='seminar.TreeNode', verbose_name='kořen stromu'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='treenode',
|
|
name='succ',
|
|
field=models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='prev', to='seminar.TreeNode', verbose_name='další element na stejné úrovni'),
|
|
),
|
|
]
|
|
|