start adding self review to collections

This commit is contained in:
Ross
2023-07-10 09:06:46 +01:00
parent c799f106d7
commit 9a5088c03a
7 changed files with 79 additions and 11 deletions
@@ -0,0 +1,18 @@
# Generated by Django 4.1.4 on 2023-07-03 12:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generic', '0004_examination_modality'),
]
operations = [
migrations.AddField(
model_name='ciduserexam',
name='completed',
field=models.BooleanField(default=False, help_text='If a exam has be completed. This will usually lock the exam to further reponses.'),
),
]
@@ -0,0 +1,18 @@
# Generated by Django 4.1.4 on 2023-07-03 12:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('generic', '0005_ciduserexam_completed'),
]
operations = [
migrations.AlterField(
model_name='ciduserexam',
name='completed',
field=models.BooleanField(default=False, help_text='If a exam has been completed. This will usually lock the exam to further reponses.'),
),
]
+5
View File
@@ -1044,6 +1044,11 @@ class CidUserExam(models.Model):
start_time = models.DateTimeField(blank=True, null=True)
end_time = models.DateTimeField(blank=True, null=True)
completed = models.BooleanField(
default=False,
help_text="If a exam has been completed. This will usually lock the exam to further reponses.",
)
cid_user = models.ForeignKey(
CidUser,
on_delete=models.CASCADE,