# Generated by Django 3.2.20 on 2023-10-13 23:28

from django.db import migrations


def delete_edoniq_test_without_assigmnet(apps, schema_editor):
    LearningContentEdoniqTest = apps.get_model("learnpath", "LearningContentEdoniqTest")
    LearningContentEdoniqTest.objects.filter(content_assignment__isnull=True).delete()


class Migration(migrations.Migration):
    dependencies = [
        ("assignment", "0010_assignmentcompletion_edoniq_extended_time_flag"),
        ("learnpath", "0008_add_edoniq_sequence_id"),
    ]

    operations = [
        migrations.RunPython(delete_edoniq_test_without_assigmnet),
    ]
