diff --git a/backend/clubs/views.py b/backend/clubs/views.py index 6ded99725..1dc5a4100 100644 --- a/backend/clubs/views.py +++ b/backend/clubs/views.py @@ -2426,7 +2426,7 @@ def destroy(self, request, *args, **kwargs): return super().destroy(request, *args, **kwargs) def get_queryset(self): - qs = Event.objects.all() + qs = Event.objects.filter(start_time__gte=timezone.now()) is_club_specific = self.kwargs.get("club_code") is not None if is_club_specific: qs = qs.filter(club__code=self.kwargs["club_code"])