From 75760816064f5518078e3284735105c2eaabb10a Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 30 Mar 2022 21:22:30 +0100 Subject: [PATCH] . --- rapids/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/tables.py b/rapids/tables.py index 3bc5d1c4..1253c1f4 100755 --- a/rapids/tables.py +++ b/rapids/tables.py @@ -59,8 +59,8 @@ class RapidTable(tables.Table): def __init__(self, data=None, *args, **kwargs): super().__init__( - data.prefetch_related( - "abnormality", "region", "examination", "images", "exams" + data.select_related("exams").prefetch_related( + "abnormality", "region", "examination", "images"#, "exams" ), *args, **kwargs,