@ -112,19 +112,53 @@ class Migration(migrations.Migration):
} ,
) ,
migrations . CreateModel (
name = ' UlohaNode ' ,
name = ' UlohaVzorak Node ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' first_child ' , models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.UlohaNode ' , verbose_name = ' první potomek ' ) ) ,
( ' root ' , models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' potomci_set ' , to = ' seminar.UlohaNode ' , verbose_name = ' kořen stromu ' ) ) ,
( ' succ ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' prev ' , to = ' seminar.UlohaNode ' , verbose_name = ' další element na stejné úrovni ' ) ) ,
( ' first_child ' , models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.UlohaVzorak Node ' , verbose_name = ' první potomek ' ) ) ,
( ' root ' , models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' potomci_set ' , to = ' seminar.UlohaVzorak Node ' , verbose_name = ' kořen stromu ' ) ) ,
( ' succ ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' prev ' , to = ' seminar.UlohaVzorak Node ' , verbose_name = ' další element na stejné úrovni ' ) ) ,
] ,
options = {
' verbose_name ' : ' Úloha (Node)' ,
' verbose_name_plural ' : ' Úlohy (Node)' ,
' db_table ' : ' seminar_nodes_uloha ' ,
' verbose_name ' : ' Vzorák úlohy (Node)' ,
' verbose_name_plural ' : ' Vzoráky úloh (Node)' ,
' db_table ' : ' seminar_nodes_uloha_vzorak ' ,
} ,
) ,
migrations . CreateModel (
name = ' UlohaZadaniNode ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' first_child ' , models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.UlohaZadaniNode ' , verbose_name = ' první potomek ' ) ) ,
( ' root ' , models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' potomci_set ' , to = ' seminar.UlohaZadaniNode ' , verbose_name = ' kořen stromu ' ) ) ,
( ' succ ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' prev ' , to = ' seminar.UlohaZadaniNode ' , verbose_name = ' další element na stejné úrovni ' ) ) ,
] ,
options = {
' verbose_name ' : ' Zadání úlohy (Node) ' ,
' verbose_name_plural ' : ' Zadání úloh (Node) ' ,
' db_table ' : ' seminar_nodes_uloha_zadani ' ,
} ,
) ,
migrations . AddField (
model_name = ' claneknode ' ,
name = ' clanek ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Clanek ' , verbose_name = ' článek ' ) ,
) ,
migrations . AddField (
model_name = ' konferanode ' ,
name = ' konfera ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Konfera ' , verbose_name = ' konfera ' ) ,
) ,
migrations . AddField (
model_name = ' ulohavzoraknode ' ,
name = ' uloha ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Uloha ' , verbose_name = ' úloha ' ) ,
) ,
migrations . AddField (
model_name = ' ulohazadaninode ' ,
name = ' uloha ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Uloha ' , verbose_name = ' úloha ' ) ,
) ,
migrations . AlterField (
model_name = ' konfera ' ,
name = ' reseni ' ,