# Generated by Django 2.2.28 on 2023-08-10 07:14
from django . db import migrations , models
import django . db . models . deletion
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
( ' contenttypes ' , ' 0002_remove_content_type_name ' ) ,
( ' personalni ' , ' 0002_initial ' ) ,
( ' odevzdavatko ' , ' 0001_initial ' ) ,
( ' tvorba ' , ' 0001_initial ' ) ,
( ' seminar ' , ' 0119_separace_odevzdavatka ' ) ,
]
run_before = [
( ' seminar ' , ' 0122_smazani_treenode ' ) ,
]
operations = [
migrations . SeparateDatabaseAndState (
state_operations = [
migrations . CreateModel (
name = ' TreeNode ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' nazev ' , models . TextField ( help_text = ' Tento název se zobrazuje v nabídkách pro výběr vhodného TreeNode ' , null = True , verbose_name = ' název tohoto node ' ) ) ,
( ' zajimave ' , models . BooleanField ( default = False , help_text = ' Zobrazí se daná věc na rozcestníku témátek ' , verbose_name = ' Zajímavé ' ) ) ,
( ' srolovatelne ' , models . BooleanField ( blank = True , help_text = ' Bude na stránce témátka možnost tuto položku skrýt ' , null = True , verbose_name = ' Srolovatelné ' ) ) ,
( ' first_child ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' father_of_first ' , to = ' treenode.TreeNode ' , verbose_name = ' první potomek ' ) ) ,
( ' polymorphic_ctype ' , models . ForeignKey ( editable = False , null = True , on_delete = django . db . models . deletion . CASCADE , related_name = ' polymorphic_treenode.treenode_set+ ' , to = ' contenttypes.ContentType ' ) ) ,
( ' root ' , models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' potomci_set ' , to = ' treenode.TreeNode ' , verbose_name = ' kořen stromu ' ) ) ,
( ' succ ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' prev ' , to = ' treenode.TreeNode ' , verbose_name = ' další element na stejné úrovni ' ) ) ,
] ,
options = {
' verbose_name ' : ' TreeNode ' ,
' verbose_name_plural ' : ' TreeNody ' ,
' db_table ' : ' mam_nodes_treenode ' ,
} ,
) ,
migrations . CreateModel (
name = ' CastNode ' ,
fields = [
( ' treenode_ptr ' , models . OneToOneField ( auto_created = True , on_delete = django . db . models . deletion . CASCADE , parent_link = True , primary_key = True , serialize = False , to = ' treenode.TreeNode ' ) ) ,
( ' nadpis ' , models . CharField ( help_text = ' Nadpis podvěšené části obsahu ' , max_length = 100 , verbose_name = ' Nadpis ' ) ) ,
] ,
options = {
' verbose_name ' : ' Část (Node) ' ,
' verbose_name_plural ' : ' Části (Node) ' ,
' db_table ' : ' mam_nodes_cast ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
] ,
options = {
' verbose_name ' : ' Mezičíslo (Node) ' ,
' verbose_name_plural ' : ' Mezičísla (Node) ' ,
' db_table ' : ' mam_nodes_mezicislo ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' uloha ' , models . OneToOneField ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.Uloha ' , verbose_name = ' úloha ' ) ) ,
] ,
options = {
' verbose_name ' : ' Zadání úlohy (Node) ' ,
' verbose_name_plural ' : ' Zadání úloh (Node) ' ,
' db_table ' : ' mam_nodes_uloha_zadani ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' uloha ' , models . OneToOneField ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.Uloha ' , verbose_name = ' úloha ' ) ) ,
] ,
options = {
' verbose_name ' : ' Vzorák úlohy (Node) ' ,
' verbose_name_plural ' : ' Vzoráky úloh (Node) ' ,
' db_table ' : ' mam_nodes_uloha_vzorak ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' text ' , models . ForeignKey ( on_delete = django . db . models . deletion . CASCADE , to = ' seminar.Text ' , verbose_name = ' text ' ) ) ,
] ,
options = {
' verbose_name ' : ' Text (Node) ' ,
' verbose_name_plural ' : ' Text (Node) ' ,
' db_table ' : ' mam_nodes_obsah ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' tema ' , models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.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 ' : ' mam_nodes_temavcisle ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' rocnik ' , models . OneToOneField ( on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.Rocnik ' , verbose_name = ' ročník ' ) ) ,
] ,
options = {
' verbose_name ' : ' Ročník (Node) ' ,
' verbose_name_plural ' : ' Ročníky (Node) ' ,
' db_table ' : ' mam_nodes_rocnik ' ,
} ,
bases = ( ' treenode.treenode ' , ) ,
) ,
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 = ' treenode.TreeNode ' ) ) ,
( ' reseni ' , models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' odevzdavatko.Reseni ' , verbose_name = ' reseni ' ) ) ,
] ,
options = {
' verbose_name ' : ' Otištěné řešení (Node) ' ,
' verbose_name_plural ' : ' Otištěná řešení (Node) ' ,
' db_table ' : ' mam_nodes_otistene_reseni ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' pohadka ' , models . OneToOneField ( on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.Pohadka ' , verbose_name = ' pohádka ' ) ) ,
] ,
options = {
' verbose_name ' : ' Pohádka (Node) ' ,
' verbose_name_plural ' : ' Pohádky (Node) ' ,
' db_table ' : ' mam_nodes_pohadka ' ,
} ,
bases = ( ' treenode.treenode ' , ) ,
) ,
migrations . CreateModel (
name = ' OrgTextNode ' ,
fields = [
( ' treenode_ptr ' , models . OneToOneField ( auto_created = True , on_delete = django . db . models . deletion . CASCADE , parent_link = True , primary_key = True , serialize = False , to = ' treenode.TreeNode ' ) ) ,
( ' org_verejny ' , models . BooleanField ( default = True , help_text = ' Pokud ano, bude org pod článkem podepsaný ' , verbose_name = ' Org je veřejný? ' ) ) ,
( ' organizator ' , models . ForeignKey ( on_delete = django . db . models . deletion . DO_NOTHING , to = ' personalni.Organizator ' , verbose_name = ' Organizátor ' ) ) ,
] ,
options = {
' verbose_name ' : ' Organizátorský článek (Node) ' ,
' verbose_name_plural ' : ' Organizátorské články (Node) ' ,
' db_table ' : ' mam_nodes_orgtextnode ' ,
} ,
bases = ( ' treenode.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 = ' treenode.TreeNode ' ) ) ,
( ' cislo ' , models . OneToOneField ( on_delete = django . db . models . deletion . PROTECT , to = ' tvorba.Cislo ' , verbose_name = ' číslo ' ) ) ,
] ,
options = {
' verbose_name ' : ' Číslo (Node) ' ,
' verbose_name_plural ' : ' Čísla (Node) ' ,
' db_table ' : ' mam_nodes_cislo ' ,
} ,
bases = ( ' treenode.treenode ' , ) ,
) ,
] ,
database_operations = [ ] ,
) ,
]