89 lines
5.8 KiB
Python
89 lines
5.8 KiB
Python
# Generated by Django 3.2.3 on 2021-06-16 11:14
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import modelcluster.fields
|
|
import wagtail.core.blocks
|
|
import wagtail.core.fields
|
|
import wagtail.embeds.blocks
|
|
import wagtail.images.blocks
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('wagtailredirects', '0006_redirect_increase_max_length'),
|
|
('wagtailcore', '0060_fix_workflow_unique_constraint'),
|
|
('wagtailcore', '0062_comment_models_and_pagesubscription'),
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('wagtailforms', '0004_add_verbose_name_plural'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ContributePage',
|
|
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')),
|
|
('details', wagtail.core.fields.RichTextField(blank=True)),
|
|
('bottom_details', wagtail.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock()), ('medium_text', wagtail.core.blocks.RichTextBlock()), ('h1_big_text', wagtail.core.blocks.TextBlock()), ('image_list', wagtail.core.blocks.StreamBlock([('image', wagtail.images.blocks.ImageChooserBlock())])), ('modal', wagtail.core.blocks.StructBlock([('modal_link_text', wagtail.core.blocks.CharBlock()), ('modal_title', wagtail.core.blocks.CharBlock()), ('modal_content', wagtail.core.blocks.RichTextBlock())]))])),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='InfoPage',
|
|
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.core.fields.StreamField([('header_video', wagtail.embeds.blocks.EmbedBlock()), ('paragraph', wagtail.core.blocks.RichTextBlock()), ('medium_text', wagtail.core.blocks.RichTextBlock()), ('h1_big_text', wagtail.core.blocks.TextBlock()), ('image_list', wagtail.core.blocks.StreamBlock([('image', wagtail.images.blocks.ImageChooserBlock())])), ('yellow_strip', wagtail.core.blocks.StreamBlock([('body', wagtail.core.blocks.RichTextBlock())]))])),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='ContributeField',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
|
|
('clean_name', models.CharField(blank=True, default='', help_text='Safe name of the form field, the label converted to ascii_snake_case', max_length=255, verbose_name='name')),
|
|
('label', models.CharField(help_text='The label of the form field', max_length=255, verbose_name='label')),
|
|
('field_type', models.CharField(choices=[('singleline', 'Single line text'), ('multiline', 'Multi-line text'), ('email', 'Email'), ('number', 'Number'), ('url', 'URL'), ('checkbox', 'Checkbox'), ('checkboxes', 'Checkboxes'), ('dropdown', 'Drop down'), ('multiselect', 'Multiple select'), ('radio', 'Radio buttons'), ('date', 'Date'), ('datetime', 'Date/time'), ('hidden', 'Hidden field'), ('file', 'Upload File')], max_length=16, verbose_name='field type')),
|
|
('required', models.BooleanField(default=True, verbose_name='required')),
|
|
('choices', models.TextField(blank=True, help_text='Comma separated list of choices. Only applicable in checkboxes, radio and dropdown.', verbose_name='choices')),
|
|
('default_value', models.CharField(blank=True, help_text='Default value. Comma separated values supported for checkboxes.', max_length=255, verbose_name='default value')),
|
|
('help_text', models.CharField(blank=True, max_length=255, verbose_name='help text')),
|
|
('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='form_fields', to='cms.contributepage')),
|
|
],
|
|
options={
|
|
'ordering': ['sort_order'],
|
|
'abstract': False,
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='GenericPage',
|
|
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.core.fields.StreamField([('paragraph', wagtail.core.blocks.RichTextBlock()), ('medium_text', wagtail.core.blocks.RichTextBlock()), ('h1_big_text', wagtail.core.blocks.TextBlock()), ('image_list', wagtail.core.blocks.StreamBlock([('image', wagtail.images.blocks.ImageChooserBlock())])), ('modal', wagtail.core.blocks.StructBlock([('modal_link_text', wagtail.core.blocks.CharBlock()), ('modal_content', wagtail.core.blocks.RichTextBlock())]))])),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='ImageGallery',
|
|
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')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
},
|
|
bases=('wagtailcore.page',),
|
|
),
|
|
]
|