from __future__ import unicode_literals

from django.db import models, migrations
import widgy.db.fields
import django.db.models.deletion
import widgy.contrib.widgy_mezzanine.models


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '__first__'),
        ('review_queue', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WidgyPage',
            fields=[
                ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')),
                ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='review_queue.ReviewedVersionTracker', null=True)),
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'widgy page',
                'verbose_name_plural': 'widgy pages',
            },
            bases=(widgy.contrib.widgy_mezzanine.models.WidgyPageMixin, 'pages.page'),
        ),
        migrations.CreateModel(
            name='UndeletePage',
            fields=[
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'restore deleted page',
                'proxy': True,
            },
            bases=('widgy_mezzanine.widgypage',),
        ),
    ]

from __future__ import unicode_literals

from django.db import models, migrations
import widgy.db.fields
import django.db.models.deletion
import widgy.contrib.widgy_mezzanine.models


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '__first__'),
        ('widgy', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WidgyPage',
            fields=[
                ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')),
                ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='widgy.VersionTracker', null=True)),
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'widgy page',
                'verbose_name_plural': 'widgy pages',
            },
            bases=(widgy.contrib.widgy_mezzanine.models.WidgyPageMixin, 'pages.page'),
        ),
        migrations.CreateModel(
            name='UndeletePage',
            fields=[
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'restore deleted page',
                'proxy': True,
            },
            bases=('widgy_mezzanine.widgypage',),
        ),
    ]

Remove dependency for ReviewedVersionTracker in migrations
Remove dependency for ReviewedVersionTracker in migrations

The base widgy migrations had references to ReviewedVersionTracker,
which is not part of the base widgy install.  This commit changes the
dependency to VersionTracker instead, which is part of the base widgy
install.

  from __future__ import unicode_literals
  
  from django.db import models, migrations
  import widgy.db.fields
  import django.db.models.deletion
  import widgy.contrib.widgy_mezzanine.models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('pages', '__first__'),
-         ('review_queue', '0001_initial'),
+         ('widgy', '0001_initial'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='WidgyPage',
              fields=[
                  ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')),
-                 ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='review_queue.ReviewedVersionTracker', null=True)),
+                 ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='widgy.VersionTracker', null=True)),
              ],
              options={
                  'ordering': ('_order',),
                  'verbose_name': 'widgy page',
                  'verbose_name_plural': 'widgy pages',
              },
              bases=(widgy.contrib.widgy_mezzanine.models.WidgyPageMixin, 'pages.page'),
          ),
          migrations.CreateModel(
              name='UndeletePage',
              fields=[
              ],
              options={
                  'ordering': ('_order',),
                  'verbose_name': 'restore deleted page',
                  'proxy': True,
              },
              bases=('widgy_mezzanine.widgypage',),
          ),
      ]
  
Remove dependency for ReviewedVersionTracker in migrations
## Code Before:
from __future__ import unicode_literals

from django.db import models, migrations
import widgy.db.fields
import django.db.models.deletion
import widgy.contrib.widgy_mezzanine.models


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '__first__'),
        ('review_queue', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WidgyPage',
            fields=[
                ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')),
                ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='review_queue.ReviewedVersionTracker', null=True)),
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'widgy page',
                'verbose_name_plural': 'widgy pages',
            },
            bases=(widgy.contrib.widgy_mezzanine.models.WidgyPageMixin, 'pages.page'),
        ),
        migrations.CreateModel(
            name='UndeletePage',
            fields=[
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'restore deleted page',
                'proxy': True,
            },
            bases=('widgy_mezzanine.widgypage',),
        ),
    ]

## Instruction:
Remove dependency for ReviewedVersionTracker in migrations
## Code After:
from __future__ import unicode_literals

from django.db import models, migrations
import widgy.db.fields
import django.db.models.deletion
import widgy.contrib.widgy_mezzanine.models


class Migration(migrations.Migration):

    dependencies = [
        ('pages', '__first__'),
        ('widgy', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='WidgyPage',
            fields=[
                ('page_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='pages.Page')),
                ('root_node', widgy.db.fields.VersionedWidgyField(on_delete=django.db.models.deletion.SET_NULL, verbose_name='widgy content', to='widgy.VersionTracker', null=True)),
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'widgy page',
                'verbose_name_plural': 'widgy pages',
            },
            bases=(widgy.contrib.widgy_mezzanine.models.WidgyPageMixin, 'pages.page'),
        ),
        migrations.CreateModel(
            name='UndeletePage',
            fields=[
            ],
            options={
                'ordering': ('_order',),
                'verbose_name': 'restore deleted page',
                'proxy': True,
            },
            bases=('widgy_mezzanine.widgypage',),
        ),
    ]
