0004_auto_20170220_0111.py 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.10.5 on 2017-02-20 01:11
  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. ('breads', '0003_auto_20170218_1102'),
  13. ]
  14. operations = [
  15. migrations.RemoveField(
  16. model_name='breadpage',
  17. name='description',
  18. ),
  19. migrations.AddField(
  20. model_name='breadpage',
  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='Describe the bread'),
  23. ),
  24. migrations.AddField(
  25. model_name='breadpage',
  26. name='introduction',
  27. field=models.TextField(blank=True, help_text='Text to describe the page'),
  28. ),
  29. migrations.AlterField(
  30. model_name='breadsindexpage',
  31. name='image',
  32. field=models.ForeignKey(blank=True, help_text='Landscape mode only; horizontal width between 1000px and 3000px.', null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
  33. ),
  34. migrations.AlterField(
  35. model_name='breadsindexpage',
  36. name='introduction',
  37. field=models.TextField(blank=True, help_text='Text to describe the page'),
  38. ),
  39. ]