membershipworks: Apply minor optimizations for event table queries

This commit is contained in:
Adam Goldsmith 2024-07-18 12:51:51 -04:00
parent 9c8ee96604
commit 4dc4cd8f34

View File

@ -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()
)