From 4630bf127bbfc5902b189fa140bdc292bd9721f5 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 14 Oct 2024 11:57:53 +0100 Subject: [PATCH] . --- anatomy/views.py | 2 +- rapids/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: