[Answer]-Django Complex query to fetch data

1👍

I need to query to fetch all tags rewarded by manager belonging to particular company

Maybe I’m misunderstanding you, but this should be pretty straightforward:

org_user = request.user.organisation_user
Tag.objects.filter(rewards__manager=org_user).distinct()

Leave a comment