Update question prefetching logic to include 'sbas' app
This commit is contained in:
+1
-1
@@ -3576,7 +3576,7 @@ class ExamViews(View, LoginRequiredMixin):
|
||||
|
||||
# Load questions; prefetch 'answers' for apps that use them to avoid repeated DB hits
|
||||
questions_qs = exam.get_questions()
|
||||
if self.app_name not in ("physics",):
|
||||
if self.app_name not in ("physics", "sbas"):
|
||||
questions_qs = questions_qs.prefetch_related("answers")
|
||||
|
||||
# Materialize questions list for iteration
|
||||
|
||||
Reference in New Issue
Block a user