membershipworks: Apply minor optimizations for event table queries
This commit is contained in:
parent
9c8ee96604
commit
4dc4cd8f34
@ -234,7 +234,7 @@ class EventMonthReport(
|
|||||||
return (
|
return (
|
||||||
super()
|
super()
|
||||||
.get_table_data()
|
.get_table_data()
|
||||||
.select_related("category", "instructor", "invoice")
|
.select_related("category", "instructor", "instructor__member", "invoice")
|
||||||
.with_financials()
|
.with_financials()
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -262,7 +262,7 @@ class UserEventView(SingleTableMixin, ListView):
|
|||||||
return (
|
return (
|
||||||
super()
|
super()
|
||||||
.get_table_data()
|
.get_table_data()
|
||||||
.select_related("category", "instructor", "invoice")
|
.select_related("category", "invoice")
|
||||||
.with_financials()
|
.with_financials()
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user