71 lines
3 KiB
Python
71 lines
3 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.9.7 on 2016-06-21 08:02
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import wagtail.wagtailcore.fields
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('wagtailcore', '0028_merge'),
|
||
|
('wagtailimages', '0013_make_rendition_upload_callable'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='ContentPage',
|
||
|
fields=[
|
||
|
('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')),
|
||
|
('intro', models.CharField(max_length=250)),
|
||
|
('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
|
||
|
('image_display', models.IntegerField(choices=[(1, 'Banner with background feature image'), (2, 'No banner, circular vignette')])),
|
||
|
('main_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('wagtailcore.page',),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='HomePage',
|
||
|
fields=[
|
||
|
('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')),
|
||
|
('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('wagtailcore.page',),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='NewsIndexPage',
|
||
|
fields=[
|
||
|
('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')),
|
||
|
('intro', wagtail.wagtailcore.fields.RichTextField(blank=True)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('wagtailcore.page',),
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='NewsPage',
|
||
|
fields=[
|
||
|
('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')),
|
||
|
('intro', models.CharField(max_length=250)),
|
||
|
('body', wagtail.wagtailcore.fields.RichTextField(blank=True)),
|
||
|
('date', models.DateField(verbose_name='Post date')),
|
||
|
('main_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
bases=('wagtailcore.page',),
|
||
|
),
|
||
|
]
|