diff --git a/subscriptions/views.py b/subscriptions/views.py index 61b21e5..9b4de67 100644 --- a/subscriptions/views.py +++ b/subscriptions/views.py @@ -204,6 +204,7 @@ class MonthlyOfferSummaryView(ListView): # Annotate notifications with month, then group by month and offerIdentifier # Only include entries where offerIdentifier is not null monthly_offers = ASSNotification.objects.exclude(offerIdentifier__isnull=True)\ + .filter(notificationType__in=['SUBSCRIBED', 'REFUND'])\ .annotate(month=TruncMonth('signedDate'))\ .values('month', 'offerIdentifier')\ .annotate(count=Count('id'))\