Skip to content
0009_more_stored_grading_changes.py 1.37 KiB
Newer Older
from django.conf import settings
Andreas Klöckner's avatar
Andreas Klöckner committed
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('course', '0008_add_flow_page_visit_grade'),
    ]

    operations = [
        migrations.AlterField(
            model_name='flowaccessexceptionentry',
            name='exception',
Dong Zhuang's avatar
Dong Zhuang committed
            field=models.ForeignKey(related_name='entries', to='course.FlowAccessException', on_delete=models.CASCADE),
        ),
        migrations.AlterField(
            model_name='flowpagedata',
            name='flow_session',
Dong Zhuang's avatar
Dong Zhuang committed
            field=models.ForeignKey(related_name='page_data', to='course.FlowSession', on_delete=models.CASCADE),
        ),
        migrations.AlterField(
            model_name='flowpagevisitgrade',
            name='visit',
Dong Zhuang's avatar
Dong Zhuang committed
            field=models.ForeignKey(related_name='grades', to='course.FlowPageVisit', on_delete=models.CASCADE),
        ),
        migrations.AlterField(
            model_name='gradechange',
            name='flow_session',
Dong Zhuang's avatar
Dong Zhuang committed
            field=models.ForeignKey(related_name='grade_changes', blank=True, to='course.FlowSession', null=True, on_delete=models.CASCADE),
        ),
        migrations.AlterField(
            model_name='userstatus',
            name='user',
Dong Zhuang's avatar
Dong Zhuang committed
            field=models.OneToOneField(related_name='user_status', to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE),