2016-04-17 23:48:39 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2019-11-07 21:50:16 +01:00
|
|
|
('seminar', '0036_add_org_to_soustredeni'),
|
2016-04-17 23:48:39 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Hlasovani',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('body', models.IntegerField(default=0, verbose_name=b'Body', choices=[(0, b'0'), (1, b'1'), (-1, b'-1')])),
|
|
|
|
('ucastnik', models.CharField(max_length=100, verbose_name=b'\xc3\x9a\xc4\x8dastn\xc3\xadk')),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Prednaska',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
('nazev', models.CharField(max_length=300, verbose_name=b'N\xc3\xa1zev')),
|
|
|
|
('anotace', models.TextField(verbose_name=b'Anotace')),
|
|
|
|
('obtiznost', models.IntegerField(verbose_name=b'Obt\xc3\xad\xc5\xbenost', choices=[(1, b'Lehk\xc3\xa1'), (2, b'St\xc5\x99edn\xc3\xad'), (3, b'T\xc4\x9b\xc5\xbek\xc3\xa1')])),
|
|
|
|
('obor', models.CharField(max_length=5, verbose_name=b'Obor')),
|
|
|
|
('klicova', models.CharField(max_length=200, null=True, verbose_name=b'Kl\xc3\xad\xc4\x8dov\xc3\xa1 slova', blank=True)),
|
2019-06-11 00:46:39 +02:00
|
|
|
('org', models.ForeignKey(to='seminar.Organizator', on_delete=models.CASCADE)),
|
2016-04-17 23:48:39 +02:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Seznam',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='hlasovani',
|
|
|
|
name='prednaska',
|
2019-06-11 00:46:39 +02:00
|
|
|
field=models.ForeignKey(to='prednasky.Prednaska', on_delete=models.CASCADE),
|
2016-04-17 23:48:39 +02:00
|
|
|
),
|
|
|
|
]
|