Web M&M
https://mam.matfyz.cz
49 lines
1.8 KiB
49 lines
1.8 KiB
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('seminar', '0041_konfery'),
|
|
('prednasky', '0004_remove_prednaska_seznam'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Prednaska_Seznam',
|
|
fields=[
|
|
('id', models.AutoField(serialize=False, primary_key=True)),
|
|
('prednaska', models.ForeignKey(to='prednasky.Prednaska', on_delete=models.CASCADE)),
|
|
],
|
|
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')])),
|
|
('soustredeni', models.ForeignKey(default=None, to='seminar.Soustredeni', null=True, on_delete=models.CASCADE)),
|
|
],
|
|
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',
|
|
field=models.ForeignKey(to='prednasky.Seznam', on_delete=models.CASCADE),
|
|
),
|
|
]
|
|
|