2017-08-07 23:31:27 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-22 21:24:20 +01:00
|
|
|
# Generated by Django 1.11.9 on 2018-01-20 19:10
|
2017-08-07 23:31:27 +02:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
2018-01-22 21:24:20 +01:00
|
|
|
import django.db.models.deletion
|
2017-08-09 00:07:56 +02:00
|
|
|
import wagtail.wagtailcore.blocks
|
2018-01-22 21:24:20 +01:00
|
|
|
import wagtail.wagtailcore.fields
|
|
|
|
import wagtail.wagtailimages.blocks
|
2019-01-06 00:25:41 +01:00
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
|
|
import gestioncof.cms.models
|
2017-08-07 23:31:27 +02:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2018-01-22 21:24:20 +01:00
|
|
|
initial = True
|
|
|
|
|
2017-08-07 23:31:27 +02:00
|
|
|
dependencies = [
|
2019-01-06 00:25:41 +01:00
|
|
|
("wagtailcore", "0033_remove_golive_expiry_help_text"),
|
|
|
|
("wagtailimages", "0019_delete_filter"),
|
2017-08-07 23:31:27 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
2017-08-19 01:32:26 +02:00
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFActuIndexPage",
|
2017-08-19 01:32:26 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
2017-08-19 01:32:26 +02:00
|
|
|
],
|
|
|
|
options={
|
2019-01-06 00:25:41 +01:00
|
|
|
"verbose_name": "Index des actualités",
|
|
|
|
"verbose_name_plural": "Indexs des actualités",
|
2017-08-19 01:32:26 +02:00
|
|
|
},
|
2019-01-06 00:25:41 +01:00
|
|
|
bases=("wagtailcore.page", gestioncof.cms.models.COFActuIndexMixin),
|
2017-08-19 01:32:26 +02:00
|
|
|
),
|
2017-08-09 00:07:56 +02:00
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFActuPage",
|
2017-08-09 00:07:56 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"chapo",
|
|
|
|
models.TextField(blank=True, verbose_name="Description rapide"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"chapo_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="Description rapide"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"chapo_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="Description rapide"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(verbose_name="Contenu"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_fr",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Contenu"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_en",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Contenu"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"is_event",
|
|
|
|
models.BooleanField(default=True, verbose_name="Évènement"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"date_start",
|
|
|
|
models.DateTimeField(verbose_name="Date et heure de début"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"date_end",
|
|
|
|
models.DateTimeField(
|
|
|
|
blank=True,
|
|
|
|
default=None,
|
|
|
|
null=True,
|
|
|
|
verbose_name="Date et heure de fin",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"all_day",
|
|
|
|
models.BooleanField(default=False, verbose_name="Toute la journée"),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"image",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
related_name="+",
|
|
|
|
to="wagtailimages.Image",
|
|
|
|
verbose_name="Image à la Une",
|
|
|
|
),
|
|
|
|
),
|
2017-08-09 00:07:56 +02:00
|
|
|
],
|
2019-01-06 00:25:41 +01:00
|
|
|
options={"verbose_name": "Actualité", "verbose_name_plural": "Actualités"},
|
|
|
|
bases=("wagtailcore.page",),
|
2017-08-09 00:07:56 +02:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFDirectoryEntryPage",
|
2017-08-09 00:07:56 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
verbose_name="Description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_fr",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_en",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"links",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"lien",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"url",
|
|
|
|
wagtail.wagtailcore.blocks.URLBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"contact",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"email",
|
|
|
|
wagtail.wagtailcore.blocks.EmailBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"links_fr",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"lien",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"url",
|
|
|
|
wagtail.wagtailcore.blocks.URLBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"contact",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"email",
|
|
|
|
wagtail.wagtailcore.blocks.EmailBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"links_en",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"lien",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"url",
|
|
|
|
wagtail.wagtailcore.blocks.URLBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"contact",
|
|
|
|
wagtail.wagtailcore.blocks.StructBlock(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"email",
|
|
|
|
wagtail.wagtailcore.blocks.EmailBlock(
|
|
|
|
required=True
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"texte",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"image",
|
|
|
|
models.ForeignKey(
|
|
|
|
blank=True,
|
|
|
|
null=True,
|
|
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
|
|
related_name="+",
|
|
|
|
to="wagtailimages.Image",
|
|
|
|
verbose_name="Image",
|
|
|
|
),
|
|
|
|
),
|
2017-08-09 00:07:56 +02:00
|
|
|
],
|
|
|
|
options={
|
2019-01-06 00:25:41 +01:00
|
|
|
"verbose_name": "Éntrée d'annuaire",
|
|
|
|
"verbose_name_plural": "Éntrées d'annuaire",
|
2017-08-09 00:07:56 +02:00
|
|
|
},
|
2019-01-06 00:25:41 +01:00
|
|
|
bases=("wagtailcore.page",),
|
2017-08-09 00:07:56 +02:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFDirectoryPage",
|
2017-08-09 00:07:56 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction_fr",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction_en",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
2017-08-09 00:07:56 +02:00
|
|
|
],
|
|
|
|
options={
|
2019-01-06 00:25:41 +01:00
|
|
|
"verbose_name": "Annuaire (clubs, partenaires, bons plans...)",
|
|
|
|
"verbose_name_plural": "Annuaires",
|
2017-08-09 00:07:56 +02:00
|
|
|
},
|
2019-01-06 00:25:41 +01:00
|
|
|
bases=("wagtailcore.page",),
|
2017-08-09 00:07:56 +02:00
|
|
|
),
|
2017-08-07 23:31:27 +02:00
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFPage",
|
2017-08-07 23:31:27 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"heading",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(
|
|
|
|
classname="full title"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
|
|
|
|
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
|
|
|
|
)
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_fr",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"heading",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(
|
|
|
|
classname="full title"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
|
|
|
|
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
|
|
|
|
),
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"body_en",
|
|
|
|
wagtail.wagtailcore.fields.StreamField(
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"heading",
|
|
|
|
wagtail.wagtailcore.blocks.CharBlock(
|
|
|
|
classname="full title"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
("paragraph", wagtail.wagtailcore.blocks.RichTextBlock()),
|
|
|
|
("image", wagtail.wagtailimages.blocks.ImageChooserBlock()),
|
|
|
|
),
|
|
|
|
null=True,
|
|
|
|
),
|
|
|
|
),
|
2017-08-09 00:07:56 +02:00
|
|
|
],
|
|
|
|
options={
|
2019-01-06 00:25:41 +01:00
|
|
|
"verbose_name": "Page normale COF",
|
|
|
|
"verbose_name_plural": "Pages normales COF",
|
2017-08-09 00:07:56 +02:00
|
|
|
},
|
2019-01-06 00:25:41 +01:00
|
|
|
bases=("wagtailcore.page",),
|
2017-08-09 00:07:56 +02:00
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
2019-01-06 00:25:41 +01:00
|
|
|
name="COFRootPage",
|
2017-08-09 00:07:56 +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",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_fr",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"title_en",
|
|
|
|
models.CharField(
|
|
|
|
help_text="The page title as you'd like it to be seen by the public",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_fr",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"slug_en",
|
|
|
|
models.SlugField(
|
|
|
|
allow_unicode=True,
|
|
|
|
help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="slug",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"url_path_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, editable=False, null=True, verbose_name="URL path"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_fr",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"seo_title_en",
|
|
|
|
models.CharField(
|
|
|
|
blank=True,
|
|
|
|
help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.",
|
|
|
|
max_length=255,
|
|
|
|
null=True,
|
|
|
|
verbose_name="page title",
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_fr",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"search_description_en",
|
|
|
|
models.TextField(
|
|
|
|
blank=True, null=True, verbose_name="search description"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction_fr",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
"introduction_en",
|
|
|
|
wagtail.wagtailcore.fields.RichTextField(
|
|
|
|
null=True, verbose_name="Introduction"
|
|
|
|
),
|
|
|
|
),
|
2017-08-07 23:31:27 +02:00
|
|
|
],
|
|
|
|
options={
|
2019-01-06 00:25:41 +01:00
|
|
|
"verbose_name": "Racine site du COF",
|
|
|
|
"verbose_name_plural": "Racines site du COF",
|
2017-08-07 23:31:27 +02:00
|
|
|
},
|
2019-01-06 00:25:41 +01:00
|
|
|
bases=("wagtailcore.page", gestioncof.cms.models.COFActuIndexMixin),
|
2017-08-07 23:31:27 +02:00
|
|
|
),
|
|
|
|
]
|