0003_auto_20170211_2120.py 1.9 KB

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-02-11 21:20
  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', '0002_auto_20170210_1556'),
  12. ]
  13. operations = [
  14. migrations.AddField(
  15. model_name='blogpage',
  16. name='introduction',
  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((('heading_block', wagtail.wagtailcore.blocks.StructBlock((('heading_text', wagtail.wagtailcore.blocks.CharBlock(classname='title', required=True)), ('size', wagtail.wagtailcore.blocks.ChoiceBlock(blank=True, choices=[('', 'Select a header size'), ('h2', 'H2'), ('h3', 'H3'), ('h4', 'H4')], required=False))))), ('paragraph_block', wagtail.wagtailcore.blocks.RichTextBlock(icon='fa-paragraph', template='blocks/paragraph_block.html')), ('image_block', wagtail.wagtailcore.blocks.StructBlock((('image', wagtail.wagtailimages.blocks.ImageChooserBlock(required=True)), ('caption', wagtail.wagtailcore.blocks.CharBlock(required=False)), ('attribution', wagtail.wagtailcore.blocks.CharBlock(required=False))))), ('block_quote', wagtail.wagtailcore.blocks.StructBlock((('text', wagtail.wagtailcore.blocks.TextBlock()), ('attribute_name', wagtail.wagtailcore.blocks.CharBlock(blank=True, label='e.g. Guy Picciotto', required=False))))), ('embed_block', wagtail.wagtailembeds.blocks.EmbedBlock(help_text='Insert an embed URL e.g https://www.youtube.com/embed/SGJFWirQ3ks', icon='fa-s15', template='blocks/embed_block.html'))), blank=True, verbose_name='Blog post'),
  23. ),
  24. ]