From 6c7637bba286329a829c1a997d9b82f173f7f7da Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 30 Mar 2022 21:42:09 +0100 Subject: [PATCH] . --- rapids/tables.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rapids/tables.py b/rapids/tables.py index 741fac88..bd7e71da 100755 --- a/rapids/tables.py +++ b/rapids/tables.py @@ -88,4 +88,13 @@ class RapidUserAnswerTable(tables.Table): "created", "updated", ) + + def __init__(self, data=None, *args, **kwargs): + super().__init__( + data.prefetch_related( + "abnormality", "region", "examination" + ), + *args, + **kwargs, + ) \ No newline at end of file