You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Generated by Django 4.2.16 on 2024-10-30 13:18
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('tvorba', '0001_tvorba_create'),
|
|
|
|
('soustredeni', '0004_tvorba_pre'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
## Konferu zmigrujeme jinak, kvůli <https://code.djangoproject.com/ticket/23521> jí nejde přepsat někde ve stavu `bases`.
|
|
|
|
## Proto si ji unmanagujeme a vyrobíme celou znovu, to by nemělo vadit (zvlášť když t.č. v DB žádná instance Konfery není).
|
|
|
|
## (Šlo by `SeparateStateAndData`, což v principu děláme taky ale ty migrace jsou lehce čitelnější a o poznání konzistentnější.)
|
|
|
|
#migrations.AlterField(
|
|
|
|
# model_name='konfera',
|
|
|
|
# name='problem_ptr',
|
|
|
|
# field=models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='tvorba.problem'),
|
|
|
|
#),
|
|
|
|
migrations.AlterField(
|
|
|
|
model_name='soustredeni',
|
|
|
|
name='rocnik',
|
|
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='soustredeni', to='tvorba.rocnik', verbose_name='ročník'),
|
|
|
|
),
|
|
|
|
]
|