2016-09-29 01:54:22 +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', '0041_konfery'),
|
2016-09-29 01:54:22 +02:00
|
|
|
('prednasky', '0004_remove_prednaska_seznam'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Prednaska_Seznam',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(serialize=False, primary_key=True)),
|
2019-06-11 00:46:39 +02:00
|
|
|
('prednaska', models.ForeignKey(to='prednasky.Prednaska', on_delete=models.CASCADE)),
|
2016-09-29 01:54:22 +02:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'db_table': 'prednasky_prednaska_seznam',
|
|
|
|
'verbose_name': 'P\u0159edn\xe1\u0161ka v seznamu',
|
|
|
|
'verbose_name_plural': 'P\u0159edn\xe1\u0161ky v seznamech',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Seznam',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(serialize=False, primary_key=True)),
|
|
|
|
('stav', models.IntegerField(default=2, verbose_name=b'Stav', choices=[(1, b'N\xc3\xa1vrh'), (2, b'Bude')])),
|
2019-06-11 00:46:39 +02:00
|
|
|
('soustredeni', models.ForeignKey(default=None, to='seminar.Soustredeni', null=True, on_delete=models.CASCADE)),
|
2016-09-29 01:54:22 +02:00
|
|
|
],
|
|
|
|
options={
|
|
|
|
'ordering': ['soustredeni', 'stav'],
|
|
|
|
'db_table': 'prednasky_seznam',
|
|
|
|
'verbose_name': 'Seznam p\u0159edn\xe1\u0161ek',
|
|
|
|
'verbose_name_plural': 'Seznamy p\u0159edn\xe1\u0161ek',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.DeleteModel(
|
|
|
|
name='Seznam_old',
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
|
|
|
model_name='prednaska_seznam',
|
|
|
|
name='seznam',
|
2019-06-11 00:46:39 +02:00
|
|
|
field=models.ForeignKey(to='prednasky.Seznam', on_delete=models.CASCADE),
|
2016-09-29 01:54:22 +02:00
|
|
|
),
|
|
|
|
]
|