0020_auto_20170308_0834.py 2.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-03-08 08:34
  3. from __future__ import unicode_literals
  4. from django.db import migrations, models
  5. import django.db.models.deletion
  6. import wagtail.wagtailcore.blocks
  7. import wagtail.wagtailcore.fields
  8. import wagtail.wagtailembeds.blocks
  9. import wagtail.wagtailimages.blocks
  10. class Migration(migrations.Migration):
  11. dependencies = [
  12. ('base', '0019_merge_20170306_1000'),
  13. ]
  14. operations = [
  15. migrations.AlterField(
  16. model_name='homepage',
  17. name='body',
  18. 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='Home content block'),
  19. ),
  20. migrations.AlterField(
  21. model_name='homepage',
  22. name='hero_cta',
  23. field=models.CharField(help_text='Text to display on Call to Action', max_length=255, verbose_name='Hero CTA'),
  24. ),
  25. migrations.AlterField(
  26. model_name='homepage',
  27. name='hero_cta_link',
  28. field=models.ForeignKey(blank=True, help_text='Choose a page to link to for the Call to Action', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailcore.Page', verbose_name='Hero CTA link'),
  29. ),
  30. ]