pracowniapp2/przyrost/migrations/0002_auto_20191125_1029.py

44 lines
1.3 KiB
Python
Raw Normal View History

2019-11-25 12:18:15 +01:00
# 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'),
),
]