Skip to content

Commit

Permalink
made required changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yadavanurag13 committed Dec 22, 2024
1 parent f9243c3 commit 6b728c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/djangoindia/api/views/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)
Expand Down

0 comments on commit 6b728c1

Please sign in to comment.