# -*- 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 = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('duplicable_testapp', '0006_add_polymorphic_relation'),
    ]

    operations = [
        migrations.CreateModel(
            name='Answer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('question_id', models.IntegerField()),
                ('original_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='all_duplicates', to='duplicable_testapp.Answer')),
                ('parent_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='direct_duplicates', to='duplicable_testapp.Answer')),
                ('question_content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='ChoicesQuestion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('original_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='all_duplicates', to='duplicable_testapp.ChoicesQuestion')),
                ('parent_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='direct_duplicates', to='duplicable_testapp.ChoicesQuestion')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='OpenQuestion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('original_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='all_duplicates', to='duplicable_testapp.OpenQuestion')),
                ('parent_version', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='direct_duplicates', to='duplicable_testapp.OpenQuestion')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AlterModelManagers(
            name='polymorphicchild1',
            managers=[
                ('objects', django.db.models.manager.Manager()),
                ('duplicable_objects', django.db.models.manager.Manager()),
            ],
        ),
    ]
