gestioCOF/gestioncof/cms/migrations/0001_initial.py
2017-08-07 23:31:27 +02:00

38 lines
2.5 KiB
Python

# -*- 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',),
),
]