Skip to content

Commit

Permalink
fix: crash when prevewing Event Listing Page (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgax authored Dec 19, 2023
1 parent 4b83180 commit 921d23d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ietf/events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
Expand Down

0 comments on commit 921d23d

Please sign in to comment.