44 lines
1.3 KiB
Python
44 lines
1.3 KiB
Python
|
# Generated by Django 2.2.7 on 2019-11-25 09:29
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('przyrost', '0001_initial'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='MenuEntry',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('link', models.TextField()),
|
||
|
('alt', models.TextField()),
|
||
|
],
|
||
|
),
|
||
|
migrations.RemoveField(
|
||
|
model_name='post',
|
||
|
name='author',
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='post',
|
||
|
name='authors',
|
||
|
field=models.ManyToManyField(to='przyrost.User'),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Config',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('topMenu', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='przyrost.Menu')),
|
||
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='menu',
|
||
|
name='entry',
|
||
|
field=models.ManyToManyField(to='przyrost.MenuEntry'),
|
||
|
),
|
||
|
]
|