1234567891011121314151617181920212223242526272829 |
- # -*- coding: utf-8 -*-
- # Generated by Django 1.10.5 on 2017-02-10 15:56
- from __future__ import unicode_literals
- from django.db import migrations, models
- import wagtail.wagtailcore.blocks
- import wagtail.wagtailcore.fields
- import wagtail.wagtailembeds.blocks
- import wagtail.wagtailimages.blocks
- class Migration(migrations.Migration):
- dependencies = [
- ('blog', '0001_initial'),
- ]
- operations = [
- migrations.AddField(
- model_name='blogpage',
- name='subtitle',
- field=models.CharField(blank=True, max_length=255),
- ),
- migrations.AlterField(
- model_name='blogpage',
- name='body',
- field=wagtail.wagtailcore.fields.StreamField([(b'intro_block', wagtail.wagtailcore.blocks.TextBlock()), (b'heading_block', wagtail.wagtailcore.blocks.StructBlock([(b'heading_text', wagtail.wagtailcore.blocks.CharBlock(classname=b'title', required=True)), (b'size', wagtail.wagtailcore.blocks.ChoiceBlock(blank=True, choices=[(b'', b'Select a header size'), (b'h2', b'H2'), (b'h3', b'H3'), (b'h4', b'H4')], required=False))])), (b'paragraph_block', wagtail.wagtailcore.blocks.RichTextBlock(icon=b'fa-paragraph', template=b'blocks/paragraph_block.html')), (b'image_block', wagtail.wagtailcore.blocks.StructBlock([(b'image', wagtail.wagtailimages.blocks.ImageChooserBlock(required=True)), (b'caption', wagtail.wagtailcore.blocks.CharBlock(required=False)), (b'attribution', wagtail.wagtailcore.blocks.CharBlock(required=False))])), (b'block_quote', wagtail.wagtailcore.blocks.StructBlock([(b'text', wagtail.wagtailcore.blocks.TextBlock()), (b'attribute_name', wagtail.wagtailcore.blocks.CharBlock(blank=True, label=b'e.g. Guy Picciotto', required=False))])), (b'embed_block', wagtail.wagtailembeds.blocks.EmbedBlock(help_text=b'Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks', icon=b'fa-s15', template=b'blocks/embed_block.html'))], blank=True, verbose_name='Blog post'),
- ),
- ]
|