# Generated by Django 3.2.20 on 2023-11-08 06:47

from django.db import migrations


def set_url_expert_course_session_edoniq_test(apps, schema_editor):
    # need to load concrete model, so that wagtail page has `specific` instance  method...
    from vbv_lernwelt.course_session.models import CourseSessionEdoniqTest

    for edoniq_test in CourseSessionEdoniqTest.objects.all():
        # trigger save to update due_date foreign key fields
        edoniq_test.save()


class Migration(migrations.Migration):
    dependencies = [
        ("duedate", "0007_auto_20231010_1505"),
    ]

    operations = [
        migrations.RunPython(
            set_url_expert_course_session_edoniq_test, migrations.RunPython.noop
        ),
    ]
