# -*- coding: utf-8 -*-
# Generated by Django 1.11.21 on 2019-06-10 21:58
from __future__ import unicode_literals
from django . conf import settings
from django . db import migrations , models
import django . db . models . deletion
class Migration ( migrations . Migration ) :
dependencies = [
( ' seminar ' , ' 0063_procisteni_migraci ' ) ,
]
operations = [
migrations . AlterField (
model_name = ' cislo ' ,
name = ' rocnik ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , related_name = ' cisla ' , to = ' seminar.Rocnik ' , verbose_name = ' ročník ' ) ,
) ,
migrations . AlterField (
model_name = ' clanek ' ,
name = ' cislo ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Cislo ' , verbose_name = ' číslo ' ) ,
) ,
migrations . AlterField (
model_name = ' hodnoceni ' ,
name = ' cislo_body ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , related_name = ' hodnoceni ' , to = ' seminar.Cislo ' , verbose_name = ' číslo pro body ' , null = True ) ,
) ,
migrations . AlterField (
model_name = ' hodnoceni ' ,
name = ' problem ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Problem ' , verbose_name = ' problém ' ) ,
) ,
migrations . AlterField (
model_name = ' konfery_ucastnici ' ,
name = ' konfera ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . CASCADE , to = ' seminar.Konfera ' , verbose_name = ' konfera ' ) ,
) ,
migrations . AlterField (
model_name = ' konfery_ucastnici ' ,
name = ' resitel ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Resitel ' , verbose_name = ' řešitel ' ) ,
) ,
migrations . AlterField (
model_name = ' nastaveni ' ,
name = ' aktualni_cislo ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Cislo ' , verbose_name = ' poslední vydané číslo ' ) ,
) ,
migrations . AlterField (
model_name = ' nastaveni ' ,
name = ' aktualni_rocnik ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Rocnik ' , verbose_name = ' aktuální ročník ' ) ,
) ,
migrations . AlterField (
model_name = ' novinky ' ,
name = ' autor ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.Organizator ' , verbose_name = ' Autor novinky ' ) ,
) ,
migrations . AlterField (
model_name = ' organizator ' ,
name = ' osoba ' ,
field = models . OneToOneField ( help_text = ' osobní údaje organizátora ' , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' org ' , to = ' seminar.Osoba ' , verbose_name = ' osoba ' ) ,
) ,
migrations . AlterField (
model_name = ' osoba ' ,
name = ' user ' ,
field = models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . DO_NOTHING , to = settings . AUTH_USER_MODEL , verbose_name = ' uživatel ' ) ,
) ,
migrations . AlterField (
model_name = ' pohadka ' ,
name = ' autor ' ,
field = models . ForeignKey ( null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.Organizator ' , verbose_name = ' Autor pohádky ' ) ,
) ,
migrations . AlterField (
model_name = ' problem ' ,
name = ' autor ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' autor_problemu_problem ' , to = ' seminar.Organizator ' , verbose_name = ' autor problému ' ) ,
) ,
migrations . AlterField (
model_name = ' problem ' ,
name = ' garant ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' garant_problemu_problem ' , to = ' seminar.Organizator ' , verbose_name = ' garant zadaného problému ' ) ,
) ,
migrations . AlterField (
model_name = ' problem ' ,
name = ' nadproblem ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , related_name = ' nadproblem_problem ' , to = ' seminar.Problem ' , verbose_name = ' nadřazený problém ' ) ,
) ,
migrations . AlterField (
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í ' ) ,
) ,
migrations . AlterField (
model_name = ' reseni_resitele ' ,
name = ' resitele ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Resitel ' , verbose_name = ' řešitel ' ) ,
) ,
migrations . AlterField (
model_name = ' resitel ' ,
name = ' osoba ' ,
field = models . OneToOneField ( null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.Osoba ' , verbose_name = ' osoba ' ) ,
) ,
migrations . AlterField (
model_name = ' resitel ' ,
name = ' skola ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.Skola ' , verbose_name = ' škola ' ) ,
) ,
migrations . AlterField (
model_name = ' skola ' ,
name = ' kontaktni_osoba ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . SET_NULL , to = ' seminar.Osoba ' , verbose_name = ' Kontaktní osoba ' ) ,
) ,
migrations . AlterField (
model_name = ' soustredeni ' ,
name = ' rocnik ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , related_name = ' soustredeni ' , to = ' seminar.Rocnik ' , verbose_name = ' ročník ' ) ,
) ,
migrations . AlterField (
model_name = ' soustredeni_organizatori ' ,
name = ' organizator ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Organizator ' , verbose_name = ' organizátor ' ) ,
) ,
migrations . AlterField (
model_name = ' soustredeni_organizatori ' ,
name = ' soustredeni ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Soustredeni ' , verbose_name = ' soustředění ' ) ,
) ,
migrations . AlterField (
model_name = ' soustredeni_ucastnici ' ,
name = ' resitel ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Resitel ' , verbose_name = ' řešitel ' ) ,
) ,
migrations . AlterField (
model_name = ' soustredeni_ucastnici ' ,
name = ' soustredeni ' ,
field = models . ForeignKey ( on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Soustredeni ' , verbose_name = ' soustředění ' ) ,
) ,
migrations . AlterField (
model_name = ' tema ' ,
name = ' rocnik ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . PROTECT , to = ' seminar.Rocnik ' , verbose_name = ' ročník ' ) ,
) ,
migrations . AlterField (
model_name = ' uloha ' ,
name = ' cislo_deadline ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . PROTECT , related_name = ' deadlinove_ulohy ' , to = ' seminar.Cislo ' , verbose_name = ' číslo deadlinu ' ) ,
) ,
migrations . AlterField (
model_name = ' uloha ' ,
name = ' cislo_reseni ' ,
field = models . ForeignKey ( blank = True , help_text = ' Číslo s řešením úlohy, jen pro úlohy ' , null = True , on_delete = django . db . models . deletion . PROTECT , related_name = ' resene_ulohy ' , to = ' seminar.Cislo ' , verbose_name = ' číslo řešení ' ) ,
) ,
migrations . AlterField (
model_name = ' uloha ' ,
name = ' cislo_zadani ' ,
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . PROTECT , related_name = ' zadane_ulohy ' , to = ' seminar.Cislo ' , verbose_name = ' číslo zadání ' ) ,
) ,
]