diff --git a/backend/djangoindia/api/views/event.py b/backend/djangoindia/api/views/event.py index 63f5b66..35d505e 100644 --- a/backend/djangoindia/api/views/event.py +++ b/backend/djangoindia/api/views/event.py @@ -102,7 +102,7 @@ def list(self, request, *args, **kwargs): def retrieve(self, request, *args, **kwargs): instance = self.get_object() - all_community_partners = CommunityPartner.objects.filter(created_at__gt=instance.created_at) + all_community_partners = CommunityPartner.objects.filter(created_at__lt=instance.created_at) serializer = EventSerializer( instance, context={"all_community_partners": all_community_partners} )