From 190e6504b17268b8054ca1a53b10653bc287258a Mon Sep 17 00:00:00 2001 From: Alex Morega Date: Tue, 19 Dec 2023 12:14:07 +0200 Subject: [PATCH] fix: crash when prevewing Event Listing Page --- ietf/events/models.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ietf/events/models.py b/ietf/events/models.py index d90d8fab..43233263 100644 --- a/ietf/events/models.py +++ b/ietf/events/models.py @@ -210,8 +210,8 @@ def upcoming_events(self): .descendant_of(self) .live() .exclude( - pk__in=self.promoted_events.all().values_list( - "promoted_event__pk", flat=True + id__in=self.promoted_events.all().values_list( + "promoted_event__id", flat=True ) ) .order_by("start_date") @@ -224,8 +224,8 @@ def past_events(self): .descendant_of(self) .live() .exclude( - pk__in=self.promoted_events.all().values_list( - "promoted_event__pk", flat=True + id__in=self.promoted_events.all().values_list( + "promoted_event__id", flat=True ) ) .order_by("-start_date")