Skip to content

Commit

Permalink
Update exam instant_report_visibility field with null=True and defaul…
Browse files Browse the repository at this point in the history
…t=True and merge migration changes
  • Loading branch information
LianaHarris360 committed Feb 20, 2025
1 parent 41f8f75 commit 39a71e1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Generated by Django 3.2.25 on 2025-02-07 15:17
# Generated by Django 3.2.25 on 2025-02-20 17:37
from django.db import migrations
from django.db import models


class Migration(migrations.Migration):

replaces = [
("exams", "0010_add_exam_report_visibility_field"),
("exams", "0011_update_exam_report_visibility_field"),
]

dependencies = [
("exams", "0009_alter_exam_date_created"),
]
Expand All @@ -13,11 +18,11 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name="draftexam",
name="instant_report_visibility",
field=models.BooleanField(default=True),
field=models.BooleanField(default=True, null=True),
),
migrations.AddField(
model_name="exam",
name="instant_report_visibility",
field=models.BooleanField(default=True),
field=models.BooleanField(default=True, null=True),
),
]
2 changes: 1 addition & 1 deletion kolibri/core/exams/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ class Meta:

# If True, learners have instant access to exam reports after submission.
# Otherwise, reports are visible only after the coach ends the exam.
instant_report_visibility = models.BooleanField(default=True)
instant_report_visibility = models.BooleanField(null=True, default=True)

def __str__(self):
return self.title
Expand Down

0 comments on commit 39a71e1

Please sign in to comment.