.
This commit is contained in:
+1
-1
@@ -915,7 +915,7 @@ def question_add_exam(request, question_id: int):
|
|||||||
else:
|
else:
|
||||||
# Return a list of exams that we can add to the question
|
# Return a list of exams that we can add to the question
|
||||||
|
|
||||||
exams = Exam.objects.filter(author=request.user) | Exam.objects.filter(open_access=True)
|
exams = Exam.objects.filter(author=request.user)
|
||||||
exams = exams.difference(question.exams.all())
|
exams = exams.difference(question.exams.all())
|
||||||
|
|
||||||
if not exams:
|
if not exams:
|
||||||
|
|||||||
+1
-1
@@ -1044,7 +1044,7 @@ def question_add_exam(request, question_id: int):
|
|||||||
else:
|
else:
|
||||||
# Return a list of exams that we can add to the question
|
# Return a list of exams that we can add to the question
|
||||||
|
|
||||||
exams = Exam.objects.filter(author=request.user) | Exam.objects.filter(open_access=True)
|
exams = Exam.objects.filter(author=request.user)
|
||||||
exams = exams.difference(question.exams.all())
|
exams = exams.difference(question.exams.all())
|
||||||
|
|
||||||
if not exams:
|
if not exams:
|
||||||
|
|||||||
Reference in New Issue
Block a user