diff --git a/membershipworks/models.py b/membershipworks/models.py index 8fc7dea..2eb0d64 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -433,7 +433,7 @@ class EventExtQuerySet(models.QuerySet["EventExt"]): return method( count__sum=Sum("count", filter=F("occurred")), instructor__count=Count("instructor", distinct=True, filter=F("occurred")), - meeting_times__count=Count("meeting_times__count", filter=F("occurred")), + meeting_times__count__sum=Sum("meeting_times__count", filter=F("occurred")), duration__sum=Sum("duration", filter=F("occurred")), person_hours__sum=Sum("person_hours", filter=F("occurred")), event_count=Count("eid", filter=F("occurred")), diff --git a/membershipworks/templates/membershipworks/event_index_report.dj.html b/membershipworks/templates/membershipworks/event_index_report.dj.html index 83276f1..547bc58 100644 --- a/membershipworks/templates/membershipworks/event_index_report.dj.html +++ b/membershipworks/templates/membershipworks/event_index_report.dj.html @@ -31,7 +31,7 @@