diff --git a/anatomy/views.py b/anatomy/views.py index a66e98e2..ee9c660b 100644 --- a/anatomy/views.py +++ b/anatomy/views.py @@ -915,7 +915,7 @@ def question_add_exam(request, question_id: int): else: # 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()) if not exams: diff --git a/rapids/views.py b/rapids/views.py index e20163bb..2368b1f2 100755 --- a/rapids/views.py +++ b/rapids/views.py @@ -1044,7 +1044,7 @@ def question_add_exam(request, question_id: int): else: # 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()) if not exams: