gestioCOF/gestioncof/cms/migrations/0002_utilpage_and_fixes.py

161 lines
5.8 KiB
Python
Raw Normal View History

2018-04-28 15:59:49 +02:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-04-28 13:46
from __future__ import unicode_literals
import django.db.models.deletion
import wagtail.contrib.wagtailroutablepage.models
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields
import wagtail.wagtailimages.blocks
2019-01-06 00:25:41 +01:00
from django.db import migrations, models
2018-04-28 15:59:49 +02:00
class Migration(migrations.Migration):
dependencies = [
2019-01-06 00:25:41 +01:00
("wagtailcore", "0039_collectionviewrestriction"),
("cofcms", "0001_initial"),
2018-04-28 15:59:49 +02:00
]
operations = [
migrations.CreateModel(
2019-01-06 00:25:41 +01:00
name="COFUtilPage",
2018-04-28 15:59:49 +02:00
fields=[
2019-01-06 00:25:41 +01:00
(
"page_ptr",
models.OneToOneField(
auto_created=True,
on_delete=django.db.models.deletion.CASCADE,
parent_link=True,
primary_key=True,
serialize=False,
to="wagtailcore.Page",
),
)
2018-04-28 15:59:49 +02:00
],
options={
2019-01-06 00:25:41 +01:00
"verbose_name": "Page utilitaire",
"verbose_name_plural": "Pages utilitaires",
2018-04-28 15:59:49 +02:00
},
2019-01-06 00:25:41 +01:00
bases=(
wagtail.contrib.wagtailroutablepage.models.RoutablePageMixin,
"wagtailcore.page",
),
2018-04-28 15:59:49 +02:00
),
migrations.AlterModelOptions(
2019-01-06 00:25:41 +01:00
name="cofdirectoryentrypage",
options={
"verbose_name": "Entrée d'annuaire",
"verbose_name_plural": "Entrées d'annuaire",
},
2018-04-28 15:59:49 +02:00
),
migrations.AddField(
2019-01-06 00:25:41 +01:00
model_name="cofdirectorypage",
name="alphabetique",
field=models.BooleanField(
default=True, verbose_name="Tri par ordre alphabétique ?"
),
2018-04-28 15:59:49 +02:00
),
migrations.AlterField(
2019-01-06 00:25:41 +01:00
model_name="cofpage",
name="body",
field=wagtail.wagtailcore.fields.StreamField(
(
(
"heading",
wagtail.wagtailcore.blocks.CharBlock(classname="full title"),
),
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
(
"iframe",
wagtail.wagtailcore.blocks.StructBlock(
(
(
"url",
wagtail.wagtailcore.blocks.URLBlock(
"Adresse de la page"
),
),
(
"height",
wagtail.wagtailcore.blocks.CharBlock(
"Hauteur (en pixels)"
),
),
)
),
),
)
),
2018-04-28 15:59:49 +02:00
),
migrations.AlterField(
2019-01-06 00:25:41 +01:00
model_name="cofpage",
name="body_en",
field=wagtail.wagtailcore.fields.StreamField(
(
(
"heading",
wagtail.wagtailcore.blocks.CharBlock(classname="full title"),
),
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
(
"iframe",
wagtail.wagtailcore.blocks.StructBlock(
(
(
"url",
wagtail.wagtailcore.blocks.URLBlock(
"Adresse de la page"
),
),
(
"height",
wagtail.wagtailcore.blocks.CharBlock(
"Hauteur (en pixels)"
),
),
)
),
),
),
null=True,
),
2018-04-28 15:59:49 +02:00
),
migrations.AlterField(
2019-01-06 00:25:41 +01:00
model_name="cofpage",
name="body_fr",
field=wagtail.wagtailcore.fields.StreamField(
(
(
"heading",
wagtail.wagtailcore.blocks.CharBlock(classname="full title"),
),
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
(
"iframe",
wagtail.wagtailcore.blocks.StructBlock(
(
(
"url",
wagtail.wagtailcore.blocks.URLBlock(
"Adresse de la page"
),
),
(
"height",
wagtail.wagtailcore.blocks.CharBlock(
"Hauteur (en pixels)"
),
),
)
),
),
),
null=True,
),
2018-04-28 15:59:49 +02:00
),
]