from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields


class Migration(migrations.Migration):

    dependencies = [
        ('blog', '__latest__'),
        ('digi', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='themepage',
            name='blog_category',
            field=models.ForeignKey(blank=True, help_text='Corresponding blog category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.BlogCategory'),
        ),
        migrations.AddField(
            model_name='themepage',
            name='body',
            field=wagtail.wagtailcore.fields.StreamField((('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()),), blank=True, null=True),
        ),
    ]

from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields


class Migration(migrations.Migration):

    dependencies = [
        ('blog', '0005_auto_20151019_1121'),
        ('digi', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='themepage',
            name='blog_category',
            field=models.ForeignKey(blank=True, help_text='Corresponding blog category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.BlogCategory'),
        ),
        migrations.AddField(
            model_name='themepage',
            name='body',
            field=wagtail.wagtailcore.fields.StreamField((('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()),), blank=True, null=True),
        ),
    ]

Use exact version instead of latest in the migration dependencies
Use exact version instead of latest in the migration dependencies

Changed to use the latest migration of wagtail-blog v1.6.9.

Refs
https://github.com/thelabnyc/wagtail_blog/blob/5147d8129127102009c9bd63b1886e7665f6ccfb/blog/migrations/0005_auto_20151019_1121.py

  from __future__ import unicode_literals
  
  from django.db import migrations, models
  import django.db.models.deletion
  import wagtail.wagtailcore.blocks
  import wagtail.wagtailcore.fields
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
-         ('blog', '__latest__'),
+         ('blog', '0005_auto_20151019_1121'),
          ('digi', '0001_initial'),
      ]
  
      operations = [
          migrations.AddField(
              model_name='themepage',
              name='blog_category',
              field=models.ForeignKey(blank=True, help_text='Corresponding blog category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.BlogCategory'),
          ),
          migrations.AddField(
              model_name='themepage',
              name='body',
              field=wagtail.wagtailcore.fields.StreamField((('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()),), blank=True, null=True),
          ),
      ]
  
Use exact version instead of latest in the migration dependencies
## Code Before:
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields


class Migration(migrations.Migration):

    dependencies = [
        ('blog', '__latest__'),
        ('digi', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='themepage',
            name='blog_category',
            field=models.ForeignKey(blank=True, help_text='Corresponding blog category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.BlogCategory'),
        ),
        migrations.AddField(
            model_name='themepage',
            name='body',
            field=wagtail.wagtailcore.fields.StreamField((('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()),), blank=True, null=True),
        ),
    ]

## Instruction:
Use exact version instead of latest in the migration dependencies
## Code After:
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.blocks
import wagtail.wagtailcore.fields


class Migration(migrations.Migration):

    dependencies = [
        ('blog', '0005_auto_20151019_1121'),
        ('digi', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='themepage',
            name='blog_category',
            field=models.ForeignKey(blank=True, help_text='Corresponding blog category', null=True, on_delete=django.db.models.deletion.SET_NULL, to='blog.BlogCategory'),
        ),
        migrations.AddField(
            model_name='themepage',
            name='body',
            field=wagtail.wagtailcore.fields.StreamField((('paragraph', wagtail.wagtailcore.blocks.RichTextBlock()),), blank=True, null=True),
        ),
    ]
