This commit is contained in:
Ross
2021-04-29 20:05:00 +01:00
parent b8e863c266
commit b7d2006d44
3 changed files with 42 additions and 0 deletions
+5
View File
@@ -522,6 +522,11 @@ class Exam(ExamBase):
default=4500,
)
author = models.ManyToManyField(settings.AUTH_USER_MODEL,
blank=True,
help_text='Author of exam',
related_name="long_exam_author")
def get_exam_question_json(self, question_id):
q = get_object_or_404(Long, pk=question_id)