.
This commit is contained in:
@@ -34,6 +34,8 @@ from longs.models import Long as LongQuestion
|
||||
from longs.models import Exam as LongExam
|
||||
from anatomy.models import AnatomyQuestion as AnatomyQuestion
|
||||
from anatomy.models import Exam as AnatomyExam
|
||||
from sbas.models import Question as SbasQuestion
|
||||
from sbas.models import Exam as SbasExam
|
||||
|
||||
from django.db.models import Case, When
|
||||
from django.conf import settings
|
||||
@@ -53,6 +55,9 @@ def get_question_and_content_type(question_type):
|
||||
elif question_type == "long":
|
||||
question = LongQuestion
|
||||
content_type = ContentType.objects.get(model="long")
|
||||
elif question_type == "sba":
|
||||
question = SbasQuestion
|
||||
content_type = ContentType.objects.get(model="sba")
|
||||
else:
|
||||
raise PermissionError()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user