diff --git a/chicago/models.py b/chicago/models.py index e57343a..1618d03 100644 --- a/chicago/models.py +++ b/chicago/models.py @@ -288,6 +288,7 @@ def primary_sponsorships(self): sponsorships__person=self, sponsorships__primary=True ) .annotate(last_action=models.Max("actions__date")) + .filter(last_action__isnull=False) .order_by("-last_action") )