# Generated by Django 3.2.20 on 2023-11-29 07:27

import django.db.models.deletion
import wagtail.fields
from django.db import migrations, models


class Migration(migrations.Migration):
    dependencies = [
        ("wagtailcore", "0089_log_entry_data_json_null_to_object"),
        ("learnpath", "0011_learningcontentknowledgeassessment"),
    ]

    operations = [
        migrations.RenameModel("LearningContentFeedback", "LearningContentFeedbackUK"),
        migrations.CreateModel(
            name="LearningContentFeedbackVV",
            fields=[
                (
                    "page_ptr",
                    models.OneToOneField(
                        auto_created=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        parent_link=True,
                        primary_key=True,
                        serialize=False,
                        to="wagtailcore.page",
                    ),
                ),
                ("minutes", models.PositiveIntegerField(default=15)),
                ("description", wagtail.fields.RichTextField(blank=True)),
                ("content_url", models.TextField(blank=True)),
                ("has_course_completion_status", models.BooleanField(default=True)),
                (
                    "can_user_self_toggle_course_completion",
                    models.BooleanField(default=False),
                ),
            ],
            options={
                "abstract": False,
            },
            bases=("wagtailcore.page",),
        ),
        migrations.AlterField(
            model_name="learningcontentassignment",
            name="assignment_type",
            field=models.CharField(
                choices=[
                    ("VOLUNTARY_CASEWORK", "VOLUNTARY_CASEWORK"),
                    ("MANDATORY_CASEWORK", "MANDATORY_CASEWORK"),
                    ("PREP_ASSIGNMENT", "PREP_ASSIGNMENT"),
                    ("REFLECTION", "REFLECTION"),
                    ("CONDITION_ACCEPTANCE", "CONDITION_ACCEPTANCE"),
                    ("EDONIQ_TEST", "EDONIQ_TEST"),
                ],
                default="MANDATORY_CASEWORK",
                max_length=50,
            ),
        ),
    ]
