fix race in filters
[wolnelektury.git] / src / chunks / migrations / 0004_menu_menuitem.py
1 # Generated by Django 2.2.27 on 2022-09-08 10:31
2
3 from django.db import migrations, models
4 import django.db.models.deletion
5
6
7 class Migration(migrations.Migration):
8
9     dependencies = [
10         ('infopages', '0002_auto_20151221_1225'),
11         ('chunks', '0003_auto_20151221_1225'),
12     ]
13
14     operations = [
15         migrations.CreateModel(
16             name='Menu',
17             fields=[
18                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19                 ('identifier', models.CharField(max_length=255, unique=True)),
20             ],
21         ),
22         migrations.CreateModel(
23             name='MenuItem',
24             fields=[
25                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
26                 ('order', models.SmallIntegerField()),
27                 ('name', models.CharField(blank=True, max_length=255)),
28                 ('name_de', models.CharField(blank=True, max_length=255, null=True)),
29                 ('name_en', models.CharField(blank=True, max_length=255, null=True)),
30                 ('name_es', models.CharField(blank=True, max_length=255, null=True)),
31                 ('name_fr', models.CharField(blank=True, max_length=255, null=True)),
32                 ('name_it', models.CharField(blank=True, max_length=255, null=True)),
33                 ('name_lt', models.CharField(blank=True, max_length=255, null=True)),
34                 ('name_pl', models.CharField(blank=True, max_length=255, null=True)),
35                 ('name_ru', models.CharField(blank=True, max_length=255, null=True)),
36                 ('name_uk', models.CharField(blank=True, max_length=255, null=True)),
37                 ('url', models.CharField(blank=True, max_length=255)),
38                 ('highlight', models.BooleanField()),
39                 ('infopage', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='infopages.InfoPage')),
40                 ('menu', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='chunks.Menu')),
41             ],
42             options={
43                 'ordering': ('order',),
44             },
45         ),
46     ]