from __future__ import unicode_literals
from django . db import migrations , models
import django . db . models . deletion
from seminar . models . soustredeni import generate_filename_konfera
class Migration ( migrations . Migration ) :
dependencies = [
( ' seminar ' , ' 0040_pohadka_nepovinny_autor ' ) ,
]
operations = [
migrations . CreateModel (
name = ' Konfera ' ,
fields = [
( ' id ' , models . AutoField ( serialize = False , primary_key = True ) ) ,
( ' nazev ' , models . CharField ( help_text = ' N \xe1 zev konfery ' , max_length = 40 , verbose_name = ' n \xe1 zev konfery ' ) ) ,
( ' popis ' , models . TextField ( help_text = ' Popis konfery k zobrazen \xed na webu ' , verbose_name = ' popis konfery ' , blank = True ) ) ,
( ' abstrakt ' , models . TextField ( help_text = ' Abstrakt konfery tak, jak byl uveden ve sborn \xed ku ' , verbose_name = ' abstrakt ' , blank = True ) ) ,
( ' org_poznamka ' , models . TextField ( help_text = ' Neve \u0159 ejn \xe1 pozn \xe1 mka ke konfe \u0159 e(plain text) ' , verbose_name = ' neve \u0159 ejn \xe1 pozn \xe1 mka ' , blank = True ) ) ,
( ' typ_prezentace ' , models . CharField ( default = b ' veletrh ' , max_length = 16 , verbose_name = ' typ prezentace ' , choices = [ ( b ' veletrh ' , ' Veletrh (postery) ' ) , ( b ' prezentace ' , ' Prezentace (p \u0159 edn \xe1 \u0161 ka) ' ) ] ) ) ,
( ' prezentace ' , models . FileField ( help_text = ' Prezentace nebo fotka posteru ' , upload_to = generate_filename_konfera , verbose_name = ' prezentace ' ) ) ,
( ' materialy ' , models . FileField ( help_text = ' Dal \u0161 \xed materi \xe1 ly ke konfe \u0159 e zabalen \xe9 do jednoho souboru ' , upload_to = generate_filename_konfera , verbose_name = ' materialy ' ) ) ,
( ' organizator ' , models . ForeignKey ( related_name = ' konfery ' , on_delete = django . db . models . deletion . SET_NULL , verbose_name = ' organiz \xe1 tor ' , to = ' seminar.Organizator ' , null = True ) ) ,
] ,
options = {
' db_table ' : ' seminar_konfera ' ,
' verbose_name ' : ' Konfera ' ,
' verbose_name_plural ' : ' Konfery ' ,
} ,
) ,
migrations . CreateModel (
name = ' Konfery_Ucastnici ' ,
fields = [
( ' id ' , models . AutoField ( serialize = False , primary_key = True ) ) ,
( ' poznamka ' , models . TextField ( help_text = ' Neve \u0159 ejn \xe1 pozn \xe1 mka k \xfa \u010d asti (plain text) ' , verbose_name = ' neve \u0159 ejn \xe1 pozn \xe1 mka ' , blank = True ) ) ,
( ' konfera ' , models . ForeignKey ( verbose_name = ' konfera ' , to = ' seminar.Konfera ' ,
on_delete = models . PROTECT ) ) ,
( ' resitel ' , models . ForeignKey ( verbose_name = ' \u0159 e \u0161 itel ' , to = ' seminar.Resitel ' , on_delete = models . CASCADE ) ) ,
] ,
options = {
' ordering ' : [ ' konfera ' , ' resitel ' ] ,
' db_table ' : ' seminar_konfery_ucastnici ' ,
' verbose_name ' : ' \xda \u010d ast na konfe \u0159 e ' ,
' verbose_name_plural ' : ' \xda \u010d asti na konfe \u0159 e ' ,
} ,
) ,
migrations . AlterField (
model_name = ' problem ' ,
name = ' typ ' ,
field = models . CharField ( default = b ' uloha ' , max_length = 32 , verbose_name = ' typ probl \xe9 mu ' , choices = [ ( b ' uloha ' , ' \xda loha ' ) , ( b ' tema ' , ' T \xe9 ma ' ) , ( b ' serial ' , ' Seri \xe1 l ' ) , ( b ' konfera ' , ' Konfera ' ) , ( b ' org-clanek ' , ' Organiz \xe1 torsk \xfd \u010d l \xe1 nek ' ) , ( b ' res-clanek ' , ' \u0158 e \u0161 itelsk \xfd \u010d l \xe1 nek ' ) ] ) ,
) ,
migrations . AddField (
model_name = ' konfera ' ,
name = ' prispevek ' ,
field = models . ForeignKey ( related_name = ' konfery ' , on_delete = django . db . models . deletion . SET_NULL , verbose_name = ' p \u0159 \xed sp \u011b vek do \u010d \xed sla ' , to = ' seminar.Problem ' , help_text = ' \xda \u010d astnick \xfd p \u0159 \xed p \u011b vek o konfe \u0159 e ' , null = True ) ,
) ,
migrations . AddField (
model_name = ' konfera ' ,
name = ' soustredeni ' ,
field = models . ForeignKey ( related_name = ' konfery ' , on_delete = django . db . models . deletion . SET_NULL , verbose_name = ' soust \u0159 ed \u011b n \xed ' , to = ' seminar.Soustredeni ' , null = True ) ,
) ,
migrations . AddField (
model_name = ' konfera ' ,
name = ' ucastnici ' ,
field = models . ManyToManyField ( help_text = ' Seznam \xfa \u010d astn \xed k \u016f konfery ' , to = ' seminar.Resitel ' , verbose_name = ' \xfa \u010d astn \xed ci konfery ' , through = ' seminar.Konfery_Ucastnici ' ) ,
) ,
]