From 4dc4cd8f349b30a124a120338187772ef4dab31b Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Thu, 18 Jul 2024 12:51:51 -0400 Subject: [PATCH] membershipworks: Apply minor optimizations for event table queries --- membershipworks/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/membershipworks/views.py b/membershipworks/views.py index 0ef9caf..2791e0c 100644 --- a/membershipworks/views.py +++ b/membershipworks/views.py @@ -234,7 +234,7 @@ class EventMonthReport( return ( super() .get_table_data() - .select_related("category", "instructor", "invoice") + .select_related("category", "instructor", "instructor__member", "invoice") .with_financials() ) @@ -262,7 +262,7 @@ class UserEventView(SingleTableMixin, ListView): return ( super() .get_table_data() - .select_related("category", "instructor", "invoice") + .select_related("category", "invoice") .with_financials() )