# Generated by Django 2.1.5 on 2020-07-04 13:21

import courses.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('courses', '0002_content_file_image_text_video'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='content',
            options={'ordering': ['order']},
        ),
        migrations.AlterModelOptions(
            name='course',
            options={'ordering': ('-created',)},
        ),
        migrations.AlterModelOptions(
            name='module',
            options={'ordering': ['order']},
        ),
        migrations.AlterModelOptions(
            name='subject',
            options={'ordering': ('title',)},
        ),
        migrations.RemoveField(
            model_name='file',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='image',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='text',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='video',
            name='ownder',
        ),
        migrations.AddField(
            model_name='content',
            name='order',
            field=courses.fields.OrderField(blank=True, default=0),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='file',
            name='owner',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, related_name='file_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='image',
            name='owner',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, related_name='image_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='module',
            name='order',
            field=courses.fields.OrderField(blank=True, default=0.0),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='text',
            name='owner',
            field=models.ForeignKey(default=-1.0, on_delete=django.db.models.deletion.CASCADE, related_name='text_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='video',
            name='owner',
            field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='video_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='content',
            name='content_type',
            field=models.ForeignKey(limit_choices_to={'model__in': ('text', 'video', 'image', 'file')}, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
        ),
        migrations.AlterField(
            model_name='module',
            name='course',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='courses.Course'),
        ),
    ]

46e68d8a316808607f4cdcf64f5e3ec406732cc7
<mask token>

<mask token>


class Migration(migrations.Migration):
    <mask token>
    <mask token>

<mask token>


class Migration(migrations.Migration):
    dependencies = [migrations.swappable_dependency(settings.
        AUTH_USER_MODEL), ('courses', '0002_content_file_image_text_video')]
    operations = [migrations.AlterModelOptions(name='content', options={
        'ordering': ['order']}), migrations.AlterModelOptions(name='course',
        options={'ordering': ('-created',)}), migrations.AlterModelOptions(
        name='module', options={'ordering': ['order']}), migrations.
        AlterModelOptions(name='subject', options={'ordering': ('title',)}),
        migrations.RemoveField(model_name='file', name='ownder'),
        migrations.RemoveField(model_name='image', name='ownder'),
        migrations.RemoveField(model_name='text', name='ownder'),
        migrations.RemoveField(model_name='video', name='ownder'),
        migrations.AddField(model_name='content', name='order', field=
        courses.fields.OrderField(blank=True, default=0), preserve_default=
        False), migrations.AddField(model_name='file', name='owner', field=
        models.ForeignKey(default=0, on_delete=django.db.models.deletion.
        CASCADE, related_name='file_related', to=settings.AUTH_USER_MODEL),
        preserve_default=False), migrations.AddField(model_name='image',
        name='owner', field=models.ForeignKey(default=0, on_delete=django.
        db.models.deletion.CASCADE, related_name='image_related', to=
        settings.AUTH_USER_MODEL), preserve_default=False), migrations.
        AddField(model_name='module', name='order', field=courses.fields.
        OrderField(blank=True, default=0.0), preserve_default=False),
        migrations.AddField(model_name='text', name='owner', field=models.
        ForeignKey(default=-1.0, on_delete=django.db.models.deletion.
        CASCADE, related_name='text_related', to=settings.AUTH_USER_MODEL),
        preserve_default=False), migrations.AddField(model_name='video',
        name='owner', field=models.ForeignKey(default='', on_delete=django.
        db.models.deletion.CASCADE, related_name='video_related', to=
        settings.AUTH_USER_MODEL), preserve_default=False), migrations.
        AlterField(model_name='content', name='content_type', field=models.
        ForeignKey(limit_choices_to={'model__in': ('text', 'video', 'image',
        'file')}, on_delete=django.db.models.deletion.CASCADE, to=
        'contenttypes.ContentType')), migrations.AlterField(model_name=
        'module', name='course', field=models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='modules', to=
        'courses.Course'))]

import courses.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):
    dependencies = [migrations.swappable_dependency(settings.
        AUTH_USER_MODEL), ('courses', '0002_content_file_image_text_video')]
    operations = [migrations.AlterModelOptions(name='content', options={
        'ordering': ['order']}), migrations.AlterModelOptions(name='course',
        options={'ordering': ('-created',)}), migrations.AlterModelOptions(
        name='module', options={'ordering': ['order']}), migrations.
        AlterModelOptions(name='subject', options={'ordering': ('title',)}),
        migrations.RemoveField(model_name='file', name='ownder'),
        migrations.RemoveField(model_name='image', name='ownder'),
        migrations.RemoveField(model_name='text', name='ownder'),
        migrations.RemoveField(model_name='video', name='ownder'),
        migrations.AddField(model_name='content', name='order', field=
        courses.fields.OrderField(blank=True, default=0), preserve_default=
        False), migrations.AddField(model_name='file', name='owner', field=
        models.ForeignKey(default=0, on_delete=django.db.models.deletion.
        CASCADE, related_name='file_related', to=settings.AUTH_USER_MODEL),
        preserve_default=False), migrations.AddField(model_name='image',
        name='owner', field=models.ForeignKey(default=0, on_delete=django.
        db.models.deletion.CASCADE, related_name='image_related', to=
        settings.AUTH_USER_MODEL), preserve_default=False), migrations.
        AddField(model_name='module', name='order', field=courses.fields.
        OrderField(blank=True, default=0.0), preserve_default=False),
        migrations.AddField(model_name='text', name='owner', field=models.
        ForeignKey(default=-1.0, on_delete=django.db.models.deletion.
        CASCADE, related_name='text_related', to=settings.AUTH_USER_MODEL),
        preserve_default=False), migrations.AddField(model_name='video',
        name='owner', field=models.ForeignKey(default='', on_delete=django.
        db.models.deletion.CASCADE, related_name='video_related', to=
        settings.AUTH_USER_MODEL), preserve_default=False), migrations.
        AlterField(model_name='content', name='content_type', field=models.
        ForeignKey(limit_choices_to={'model__in': ('text', 'video', 'image',
        'file')}, on_delete=django.db.models.deletion.CASCADE, to=
        'contenttypes.ContentType')), migrations.AlterField(model_name=
        'module', name='course', field=models.ForeignKey(on_delete=django.
        db.models.deletion.CASCADE, related_name='modules', to=
        'courses.Course'))]

# Generated by Django 2.1.5 on 2020-07-04 13:21

import courses.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('courses', '0002_content_file_image_text_video'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='content',
            options={'ordering': ['order']},
        ),
        migrations.AlterModelOptions(
            name='course',
            options={'ordering': ('-created',)},
        ),
        migrations.AlterModelOptions(
            name='module',
            options={'ordering': ['order']},
        ),
        migrations.AlterModelOptions(
            name='subject',
            options={'ordering': ('title',)},
        ),
        migrations.RemoveField(
            model_name='file',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='image',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='text',
            name='ownder',
        ),
        migrations.RemoveField(
            model_name='video',
            name='ownder',
        ),
        migrations.AddField(
            model_name='content',
            name='order',
            field=courses.fields.OrderField(blank=True, default=0),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='file',
            name='owner',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, related_name='file_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='image',
            name='owner',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, related_name='image_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='module',
            name='order',
            field=courses.fields.OrderField(blank=True, default=0.0),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='text',
            name='owner',
            field=models.ForeignKey(default=-1.0, on_delete=django.db.models.deletion.CASCADE, related_name='text_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='video',
            name='owner',
            field=models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='video_related', to=settings.AUTH_USER_MODEL),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='content',
            name='content_type',
            field=models.ForeignKey(limit_choices_to={'model__in': ('text', 'video', 'image', 'file')}, on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
        ),
        migrations.AlterField(
            model_name='module',
            name='course',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='modules', to='courses.Course'),
        ),
    ]
