This commit is contained in:
Ross
2022-04-21 15:49:27 +01:00
parent 0b33fe4ba1
commit 1f144c4772
3 changed files with 38 additions and 3 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ from helpers.images import image_as_base64
from django.contrib.contenttypes.fields import GenericRelation
from generic.models import CidUser, Site, Condition, Sign, ExamBase, QuestionNote
from generic.models import CidUser, CidUserGroup, Site, Condition, Sign, ExamBase, QuestionNote
import reversion
@@ -596,7 +596,7 @@ class Exam(ExamBase):
CidUser, blank=True, related_name="rapid_exams"
)
cid_user_groups = models.ManyToManyField("generic.CidUserGroup")
cid_user_groups = models.ManyToManyField(CidUserGroup)
def get_normal_abnormal_breakdown(self):
# Inefficient but more extendible
+1 -1
View File
@@ -110,7 +110,7 @@ urlpatterns = [
path("exam/all", views.GenericExamViews.exam_list_all, name="exam_list_all"),
path("exam/create", views.ExamCreate.as_view(), name="exam_create"),
path("exam/<int:exam_id>/clone", views.ExamClone.as_view(), name="exam_clone"),
path("exam/<int:exam_id>/cids", views.GenericExamViews.exam_cids, name="exam_cids"),
path("exam/<int:exam_id>/cids/edit", views.GenericExamViews.exam_cids, name="exam_cids_edit"),
path("exam/<int:pk>/update", views.ExamUpdate.as_view(), name="exam_update"),
path("exam/<int:pk>/delete", views.ExamDelete.as_view(), name="exam_delete"),
path("exam/json/", views.GenericExamViews.active_exams, name="active_exams"),