# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django . db import models , migrations
from django . conf import settings
class Migration ( migrations . Migration ) :
dependencies = [
migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) ,
( ' seminar ' , ' 0023_add_novinky ' ) ,
]
operations = [
migrations . CreateModel (
name = ' Organizator ' ,
fields = [
( ' id ' , models . AutoField ( verbose_name = ' ID ' , serialize = False , auto_created = True , primary_key = True ) ) ,
( ' prezdivka ' , models . CharField ( max_length = 32 , null = True , verbose_name = b ' P \xc5 \x99 ezd \xc3 \xad vka ' , blank = True ) ) ,
( ' organizuje_od_roku ' , models . IntegerField ( null = True , verbose_name = b ' Organizuje od roku ' , blank = True ) ) ,
( ' organizuje_do_roku ' , models . IntegerField ( null = True , verbose_name = b ' Organizuje do roku ' , blank = True ) ) ,
( ' studuje ' , models . CharField ( max_length = 256 , null = True , verbose_name = b ' Studuje ' , blank = True ) ) ,
( ' strucny_popis_organizatora ' , models . TextField ( null = True , verbose_name = b ' Stru \xc4 \x8d n \xc3 \xbd popis organiz \xc3 \xa1 tora ' , blank = True ) ) ,
( ' foto ' , models . ImageField ( help_text = b ' Vlo \xc5 \xbe fotografii organiz \xc3 \xa1 tora o libovon \xc3 \xa9 velikosti ' , upload_to = b ' image_organizatori/ % Y/ ' , null = True , verbose_name = b ' Fotografie organiz \xc3 \xa1 tora ' , blank = True ) ) ,
( ' foto_male ' , models . ImageField ( upload_to = b ' image_organizatori/male/ % Y/ ' , null = True , editable = False , blank = True ) ) ,
( ' user ' , models . OneToOneField ( verbose_name = b ' Osoba ' , to = settings . AUTH_USER_MODEL , help_text = b ' Vyber \xc3 \xba \xc4 \x8d et sp \xc5 \x99 a \xc5 \xbe en \xc3 \xbd s organiz \xc3 \xa1 torem. ' , on_delete = models . CASCADE ) ) ,
] ,
options = {
' verbose_name ' : ' Organiz \xe1 tor ' ,
' verbose_name_plural ' : ' Organiz \xe1 to \u0159 i ' ,
} ,
bases = ( models . Model , ) ,
) ,
]