.
This commit is contained in:
@@ -130,6 +130,7 @@ class ExamBase(models.Model):
|
|||||||
# default=2100,
|
# default=2100,
|
||||||
# )
|
# )
|
||||||
|
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
abstract = True
|
abstract = True
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# Generated by Django 3.2.10 on 2022-04-21 14:31
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('generic', '0026_ciduser_generic_cid_cid_291418_idx'),
|
||||||
|
('rapids', '0046_exam_include_history'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='exam',
|
||||||
|
name='cid_user_groups',
|
||||||
|
field=models.ManyToManyField(to='generic.CidUserGroup'),
|
||||||
|
),
|
||||||
|
]
|
||||||
@@ -596,6 +596,8 @@ class Exam(ExamBase):
|
|||||||
CidUser, blank=True, related_name="rapid_exams"
|
CidUser, blank=True, related_name="rapid_exams"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cid_user_groups = models.ManyToManyField("generic.CidUserGroup")
|
||||||
|
|
||||||
def get_normal_abnormal_breakdown(self):
|
def get_normal_abnormal_breakdown(self):
|
||||||
# Inefficient but more extendible
|
# Inefficient but more extendible
|
||||||
questions = self.exam_questions.all()
|
questions = self.exam_questions.all()
|
||||||
|
|||||||
Reference in New Issue
Block a user