# -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-11-17 08:51
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager


class Migration(migrations.Migration):

    dependencies = [
        ('versionable_testapp', '0003_auto_20150823_0022'),
    ]

    operations = [
        migrations.CreateModel(
            name='DependencyModelParentNull',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('original_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='all_duplicates', to='versionable_testapp.DependencyModelParentNull')),
                ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='versionable_testapp.VersionableModel1')),
                ('parent_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='direct_duplicates', to='versionable_testapp.DependencyModelParentNull')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='SubDependencyModelParentNull',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('original_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='all_duplicates', to='versionable_testapp.SubDependencyModelParentNull')),
                ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='versionable_testapp.DependencyModelParentNull')),
                ('parent_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='direct_duplicates', to='versionable_testapp.SubDependencyModelParentNull')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AlterModelManagers(
            name='polymorphicchild1',
            managers=[
                ('objects', django.db.models.manager.Manager()),
                ('versionable_objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.AlterModelManagers(
            name='polymorphicchild2',
            managers=[
                ('versionable_objects', django.db.models.manager.Manager()),
                ('objects', django.db.models.manager.Manager()),
            ],
        ),
        migrations.AlterModelManagers(
            name='polymorphicdependencychild2',
            managers=[
                ('objects', django.db.models.manager.Manager()),
                ('dependency_objects', django.db.models.manager.Manager()),
            ],
        ),
    ]
