text: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.9 on 2016-08-31 00:35
  from __future__ import unicode_literals
  
  import datetime
  from django.db import migrations, models
  import django.db.models.deletion
  import home.models
  import modelcluster.fields
  import wagtail.contrib.table_block.blocks
  import wagtail.core.blocks
  import wagtail.core.fields
  import wagtail.images.blocks
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('wagtailcore', '0028_merge'),
          ('wagtailimages', '0013_make_rendition_upload_callable'),
          ('home', '0017_auto_20160823_1504'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='Author',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('name', models.CharField(max_length=255)),
                  ('title', models.CharField(max_length=255)),
                  ('email', models.EmailField(max_length=254)),
                  ('phone', models.CharField(blank=True, max_length=255)),
                  ('bio', models.TextField(blank=True)),
                  ('photo', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
              ],
          ),
          migrations.CreateModel(
              name='DigestPage',
              fields=[
                  ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
                  ('body', wagtail.core.fields.StreamField([(b'heading', wagtail.core.blocks.CharBlock(classname=b'full title')), (b'paragraph', wagtail.core.blocks.RichTextBlock()), (b'html', wagtail.core.blocks.RawHTMLBlock()), (b'image', wagtail.images.blocks.ImageChooserBlock()), (b'table', wagtail.contrib.table_block.blocks.TableBlock())], blank=True, null=True)),
                  ('date', models.DateField(default=datetime.date.today)),
                  ('feed_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
                  ('read_next', models.ForeignKey(blank=True, default=home.models.get_previous_digest_page, null=True, on_delete=django.db.models.deletion.SET_NULL, to='home.DigestPage')),
              ],
              options={
                  'abstract': False,
              },
              bases=('wagtailcore.page',),
          ),
          migrations.CreateModel(
              name='DigestPageAuthors',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                  ('role', models.CharField(choices=[(b'author', b'Author'), (b'writer', b'Written by'), (b'graphics', b'Graphics by'), (b'contact', b'Contact')], default=b'author', max_length=255)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='home.Author')),
                  ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='authors', to='home.DigestPage')),
              ],
              options={
                  'ordering': ['sort_order'],
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='PressReleasePage',
              fields=[
                  ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
                  ('body', wagtail.core.fields.StreamField([(b'heading', wagtail.core.blocks.CharBlock(classname=b'full title')), (b'paragraph', wagtail.core.blocks.RichTextBlock()), (b'html', wagtail.core.blocks.RawHTMLBlock()), (b'image', wagtail.images.blocks.ImageChooserBlock()), (b'table', wagtail.contrib.table_block.blocks.TableBlock())], blank=True, null=True)),
                  ('date', models.DateField(default=datetime.date.today)),
                  ('category', models.CharField(choices=[(b'audit reports', b'Audit reports'), (b'campaign finance data summaries', b'Campaign finance data summaries'), (b'commission appointments', b'Commission appointments'), (b'disclosure initiatives', b'Disclosure initiatives'), (b'enforcement matters', b'Enforcement matters'), (b'hearings', b'Hearings'), (b'litigation', b'Litigation'), (b'non-filer publications', b'Non-filer publications'), (b'open meetings and related matters', b'Open meetings and related matters'), (b'presidential public funds', b'Presidential public funds'), (b'rulemakings', b'Rulemakings'), (b'other agency actions', b'Other agency actions')], max_length=255)),
                  ('feed_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
                  ('read_next', models.ForeignKey(blank=True, default=home.models.get_previous_press_release_page, null=True, on_delete=django.db.models.deletion.SET_NULL, to='home.PressReleasePage')),
              ],
              options={
                  'abstract': False,
              },
              bases=('wagtailcore.page',),
          ),
          migrations.CreateModel(
              name='PressReleasePageAuthors',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                  ('role', models.CharField(choices=[(b'author', b'Author'), (b'writer', b'Written by'), (b'graphics', b'Graphics by'), (b'contact', b'Contact')], default=b'author', max_length=255)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='home.Author')),
                  ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='authors', to='home.PressReleasePage')),
              ],
              options={
                  'ordering': ['sort_order'],
                  'abstract': False,
              },
          ),
          migrations.CreateModel(
              name='RecordPage',
              fields=[
                  ('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.Page')),
                  ('body', wagtail.core.fields.StreamField([(b'heading', wagtail.core.blocks.CharBlock(classname=b'full title')), (b'paragraph', wagtail.core.blocks.RichTextBlock()), (b'html', wagtail.core.blocks.RawHTMLBlock()), (b'image', wagtail.images.blocks.ImageChooserBlock()), (b'table', wagtail.contrib.table_block.blocks.TableBlock())], blank=True, null=True)),
                  ('date', models.DateField(default=datetime.date.today)),
                  ('category', models.CharField(choices=[(b'advisory opinions', b'Advisory Opinions'), (b'commission', b'Commission'), (b'compliance', b'Compliance'), (b'litigation', b'Litigation'), (b'outreach', b'Outreach'), (b'public funding', b'Public Funding'), (b'regulations', b'Regulations'), (b'reporting', b'Reporting'), (b'statistics', b'Statistics')], max_length=255)),
                  ('related_section_title', models.CharField(blank=True, default=b'Explore campaign finance data', max_length=255)),
                  ('related_section_url', models.CharField(blank=True, default=b'/data/', max_length=255)),
                  ('feed_image', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image')),
                  ('read_next', models.ForeignKey(blank=True, default=home.models.get_previous_record_page, null=True, on_delete=django.db.models.deletion.SET_NULL, to='home.RecordPage')),
              ],
              options={
                  'abstract': False,
              },
              bases=('wagtailcore.page',),
          ),
          migrations.CreateModel(
              name='RecordPageAuthors',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('sort_order', models.IntegerField(blank=True, editable=False, null=True)),
                  ('role', models.CharField(choices=[(b'author', b'Author'), (b'writer', b'Written by'), (b'graphics', b'Graphics by'), (b'contact', b'Contact')], default=b'author', max_length=255)),
                  ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='home.Author')),
                  ('page', modelcluster.fields.ParentalKey(on_delete=django.db.models.deletion.CASCADE, related_name='authors', to='home.RecordPage')),
              ],
              options={
                  'ordering': ['sort_order'],
                  'abstract': False,
              },
          ),
          migrations.AddField(
              model_name='calendarpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='checklistpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='contactpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='homepage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='landingpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='nonconnectedchecklistpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='partychecklistpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
          migrations.AddField(
              model_name='ssfchecklistpage',
              name='feed_image',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='+', to='wagtailimages.Image'),
          ),
      ]
  