0002_auto_20170210_1556.py 1.9 KB

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-02-10 15:56
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. import wagtail.wagtailcore.blocks
  6. import wagtail.wagtailcore.fields
  7. import wagtail.wagtailembeds.blocks
  8. import wagtail.wagtailimages.blocks
  9. class Migration(migrations.Migration):
  10. dependencies = [
  11. ('blog', '0001_initial'),
  12. ]
  13. operations = [
  14. migrations.AddField(
  15. model_name='blogpage',
  16. name='subtitle',
  17. field=models.CharField(blank=True, max_length=255),
  18. ),
  19. migrations.AlterField(
  20. model_name='blogpage',
  21. name='body',
  22. 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'),
  23. ),
  24. ]