add exam collections
This commit is contained in:
@@ -28,6 +28,7 @@ from helpers.images import image_as_base64, pretty_print_dicom
|
||||
from generic.models import (
|
||||
CidUser,
|
||||
CidUserGroup,
|
||||
ExamCollection,
|
||||
ExamUserStatus,
|
||||
Examination,
|
||||
ExamBase,
|
||||
@@ -465,6 +466,8 @@ class Exam(ExamBase):
|
||||
|
||||
exam_user_status = GenericRelation(ExamUserStatus)
|
||||
|
||||
exam_collection = models.ForeignKey(ExamCollection, blank=True, null=True, on_delete=models.SET_NULL, related_name="longs_exams")
|
||||
|
||||
def get_exam_question_json(self, question_id):
|
||||
q = get_object_or_404(Long, pk=question_id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user