Skip to content

Commit

Permalink
Merge pull request #263 from Yadavanurag13/ticket_259
Browse files Browse the repository at this point in the history
Fixed Community partners being returned with wrong events.
  • Loading branch information
DevilsAutumn authored Dec 27, 2024
2 parents f9243c3 + 6b728c1 commit e465491
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 e465491

Please sign in to comment.