49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
# Generated by Django 3.2.13 on 2023-07-12 14:49
|
|
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("wagtailcore", "0083_workflowcontenttype"),
|
|
("assignment", "0006_auto_20230628_1616"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveConstraint(
|
|
model_name="assignmentcompletion",
|
|
name="assignment_completion_unique_user_assignment_course_session",
|
|
),
|
|
migrations.RemoveField(
|
|
model_name="assignmentcompletion",
|
|
name="circle",
|
|
),
|
|
migrations.AddField(
|
|
model_name="assignmentcompletion",
|
|
name="learning_content_page",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
default=None,
|
|
help_text="Page reference mostly needed for 'REFLECTION' assignments",
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name="+",
|
|
to="wagtailcore.page",
|
|
),
|
|
),
|
|
migrations.AddConstraint(
|
|
model_name="assignmentcompletion",
|
|
constraint=models.UniqueConstraint(
|
|
fields=(
|
|
"assignment_user",
|
|
"assignment",
|
|
"course_session",
|
|
"learning_content_page",
|
|
),
|
|
name="assignment_completion_unique_user_assignment_course_session",
|
|
),
|
|
),
|
|
]
|