Début nouveau site cof
This commit is contained in:
parent
878c617cc7
commit
65d7a66eb8
11 changed files with 78 additions and 0 deletions
38
gestioncof/cms/migrations/0001_initial.py
Normal file
38
gestioncof/cms/migrations/0001_initial.py
Normal file
|
@ -0,0 +1,38 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
import wagtail.wagtailcore.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('wagtailcore', '0033_remove_golive_expiry_help_text'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='COFPage',
|
||||
fields=[
|
||||
('page_ptr', models.OneToOneField(primary_key=True, to='wagtailcore.Page', parent_link=True, auto_created=True, serialize=False)),
|
||||
('title_fr', models.CharField(help_text="The page title as you'd like it to be seen by the public", null=True, max_length=255, verbose_name='title')),
|
||||
('title_en', models.CharField(help_text="The page title as you'd like it to be seen by the public", null=True, max_length=255, verbose_name='title')),
|
||||
('slug_fr', models.SlugField(help_text='The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/', null=True, max_length=255, verbose_name='slug')),
|
||||
('slug_en', models.SlugField(help_text='The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/', null=True, max_length=255, verbose_name='slug')),
|
||||
('url_path_fr', models.TextField(blank=True, null=True, editable=False, verbose_name='URL path')),
|
||||
('url_path_en', models.TextField(blank=True, null=True, editable=False, verbose_name='URL path')),
|
||||
('seo_title_fr', models.CharField(help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.", null=True, blank=True, max_length=255, verbose_name='page title')),
|
||||
('seo_title_en', models.CharField(help_text="Optional. 'Search Engine Friendly' title. This will appear at the top of the browser window.", null=True, blank=True, max_length=255, 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')),
|
||||
('corps', wagtail.wagtailcore.fields.RichTextField()),
|
||||
('corps_fr', wagtail.wagtailcore.fields.RichTextField(null=True)),
|
||||
('corps_en', wagtail.wagtailcore.fields.RichTextField(null=True)),
|
||||
],
|
||||
options={
|
||||
'abstract': False,
|
||||
},
|
||||
bases=('wagtailcore.page',),
|
||||
),
|
||||
]
|
0
gestioncof/cms/migrations/__init__.py
Normal file
0
gestioncof/cms/migrations/__init__.py
Normal file
Loading…
Add table
Add a link
Reference in a new issue